]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/iostat: use correct types
authorKefu Chai <kchai@redhat.com>
Sun, 17 Jan 2021 01:35:36 +0000 (09:35 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 26 Jan 2021 10:01:59 +0000 (18:01 +0800)
commit4ffcccf6a4bbded4a240c2bf13020da1d6d6d774
tree0a822bbb866e3997398778a40b82dee6f1e6b38b
parent9bcd08c3753d1a0d55a78550d5e74a26af30b4b3
pybind/mgr/iostat: use correct types

for better readability and for the sake of correctness.

* do not cast denominator to float before diving by it
* use '//' for divding an int
* cast int to str as it will be used as an element in a list of str

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/iostat/module.py