From c6773c277e602bd53f58ef4f7257fbbe4a91afa2 Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Wed, 19 May 2021 01:29:15 -0400 Subject: [PATCH] cephfs-top: display latency in milliseconds Signed-off-by: Venky Shankar (cherry picked from commit bf261f2a07111361ec8db36a7a4b13b54ff5d891) --- src/tools/cephfs/top/cephfs-top | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/cephfs/top/cephfs-top b/src/tools/cephfs/top/cephfs-top index 4921a894adb..4d359211f24 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: -- 2.47.3