]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Remove convertion to seconds 31262/head
authorTiago Melo <tmelo@suse.com>
Wed, 30 Oct 2019 16:13:01 +0000 (15:13 -0100)
committerTiago Melo <tmelo@suse.com>
Wed, 30 Oct 2019 16:15:18 +0000 (15:15 -0100)
This is no longer need since the values are already in seconds.

Fixes: https://tracker.ceph.com/issues/42567
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/controllers/cephfs.py

index 853bea2d148f3a4a257b4a3c440b1098bf49f3db..ad99ad67d2349a7773838eeadd31eb9e1a862bfe 100644 (file)
@@ -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] = []