From a7daa902a6f55850e5c62e3cbfe87daaf9aeb7cb Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Wed, 30 Oct 2019 15:13:01 -0100 Subject: [PATCH] mgr/dashboard: Remove convertion to seconds This is no longer need since the values are already in seconds. Fixes: https://tracker.ceph.com/issues/42567 Signed-off-by: Tiago Melo --- src/pybind/mgr/dashboard/controllers/cephfs.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pybind/mgr/dashboard/controllers/cephfs.py b/src/pybind/mgr/dashboard/controllers/cephfs.py index 853bea2d148f3..ad99ad67d2349 100644 --- a/src/pybind/mgr/dashboard/controllers/cephfs.py +++ b/src/pybind/mgr/dashboard/controllers/cephfs.py @@ -77,16 +77,12 @@ class CephFS(RESTController): result = {} mds_names = self._get_mds_names(fs_id) - def _to_second(point): - return (point[0] // 1000000000, point[1]) - for mds_name in mds_names: result[mds_name] = {} for counter in counters: data = mgr.get_counter("mds", mds_name, counter) if data is not None: - result[mds_name][counter] = list( - map(_to_second, data[counter])) + result[mds_name][counter] = data[counter] else: result[mds_name][counter] = [] -- 2.39.5