From: Tiago Melo Date: Wed, 30 Oct 2019 16:13:01 +0000 (-0100) Subject: mgr/dashboard: Remove convertion to seconds X-Git-Tag: v15.1.0~1100^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a7daa902a6f55850e5c62e3cbfe87daaf9aeb7cb;p=ceph.git 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 --- 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] = []