From: Kefu Chai Date: Sat, 16 Jun 2018 18:37:03 +0000 (+0800) Subject: mgr/iostat: column_width should be int not float X-Git-Tag: v14.0.1~1033^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22588%2Fhead;p=ceph.git mgr/iostat: column_width should be int not float in python3, 3/2 is a float not intger Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 1db2e71a425e..a9c0b1b211cc 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -364,7 +364,7 @@ class MgrModule(ceph_module.BaseMgrModule): :param width: the width of the terminal """ n = len(elems) - column_width = width / n + column_width = int(width / n) ret = '|' for elem in elems: @@ -380,7 +380,7 @@ class MgrModule(ceph_module.BaseMgrModule): :param width: the width of the terminal """ n = len(elems) - column_width = width / n + column_width = int(width / n) # dash line ret = '+'