mirror of
https://github.com/ceph/ceph
synced 2025-01-04 10:12:30 +00:00
cephfs-top: display latency in milliseconds
Signed-off-by: Venky Shankar <vshankar@redhat.com>
This commit is contained in:
parent
60f33a8ca3
commit
bf261f2a07
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user