From: Venky Shankar Date: Wed, 19 May 2021 05:29:15 +0000 (-0400) Subject: cephfs-top: display latency in milliseconds X-Git-Tag: v16.2.11~317^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9b4b6d1b62f80b2d125b037987a44e4dad5e75d1;p=ceph.git cephfs-top: display latency in milliseconds Signed-off-by: Venky Shankar (cherry picked from commit bf261f2a07111361ec8db36a7a4b13b54ff5d891) --- diff --git a/src/tools/cephfs/top/cephfs-top b/src/tools/cephfs/top/cephfs-top index 4fae3593bd75..c2704cb38ff7 100755 --- a/src/tools/cephfs/top/cephfs-top +++ b/src/tools/cephfs/top/cephfs-top @@ -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: