cephfs-top: display latency in milliseconds

Signed-off-by: Venky Shankar <vshankar@redhat.com>
This commit is contained in:
Venky Shankar 2021-05-19 01:29:15 -04:00
parent 60f33a8ca3
commit bf261f2a07

View File

@ -108,7 +108,7 @@ def calc_perc(c):
def calc_lat(c):
return round(c[0] + c[1] / 1000000000, 2)
return round(c[0] * 1000 + c[1] / 1000000, 2)
def calc_stdev(c):
@ -268,7 +268,7 @@ class FSTop(object):
if typ == MetricType.METRIC_TYPE_PERCENTAGE:
return "(%)"
elif typ == MetricType.METRIC_TYPE_LATENCY:
return "(s)"
return "(ms)"
elif typ == MetricType.METRIC_TYPE_SIZE:
return "(MB)"
elif typ == MetricType.METRIC_TYPE_STDEV: