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>
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] = []