]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-top: display latency in milliseconds
authorVenky Shankar <vshankar@redhat.com>
Wed, 19 May 2021 05:29:15 +0000 (01:29 -0400)
committerVenky Shankar <vshankar@redhat.com>
Wed, 9 Feb 2022 07:51:25 +0000 (02:51 -0500)
Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/tools/cephfs/top/cephfs-top

index 1575d1706a0f6139a9563e40a0255665941c0db9..9c5819583241b18ec4cc8419130533347095094f 100755 (executable)
@@ -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: