]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: Add get_rates_from_data to mgr_util.py 33893/head
authorStephan Müller <smueller@suse.com>
Fri, 14 Jun 2019 13:45:53 +0000 (15:45 +0200)
committerErnesto Puerta <epuertat@redhat.com>
Wed, 11 Mar 2020 19:12:55 +0000 (20:12 +0100)
commit6ead093299efeee9d2da19f5eb59c305718adb7e
treea4aba4616f0566bc5fdcd4b40827d6ab59915be6
parenta37940c5ac55a2a99740defd21635f991b0702dd
mgr: Add get_rates_from_data to mgr_util.py

The function calculates the difference between the values
in a time series list.

The previous location of it was in the dashboard, that's why the
function has doc tests. In order to be able to test them as part of the
manager utilities a bit of tox magic was added.

Fixes: https://tracker.ceph.com/issues/40365
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit 34976bae148aec013b53e1376b45a7af98e69b93)
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
Conflicts:
src/pybind/mgr/dashboard/controllers/osd.py
src/pybind/mgr/dashboard/controllers/osd.py
src/pybind/mgr/dashboard/services/ceph_service.py
src/pybind/mgr/dashboard/services/tcmu_service.py
src/pybind/mgr/mgr_util.py