]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/mgr_util: fix to_pretty_timedelta
authorSage Weil <sage@newdream.net>
Thu, 20 Jan 2022 18:14:06 +0000 (13:14 -0500)
committerSage Weil <sage@newdream.net>
Thu, 20 Jan 2022 18:16:55 +0000 (13:16 -0500)
commit538aa10df1e8f83b99019b27038c30fa3d455a5a
treee310253259f53fe984f42dbb21adbd4df2dff725
parent7112b9a47f5906353716452c08d2775bbb50796b
pybind/mgr/mgr_util: fix to_pretty_timedelta

- total_seconds, not seconds
- int, not float

Added unit tests.

Fixes: https://tracker.ceph.com/issues/53953
Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/mgr_util.py
src/pybind/mgr/tests/test_mgr_util.py [new file with mode: 0644]