Merge PR #22588 into master

* refs/pull/22588/head:
	mgr/iostat: column_width should be int not float

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Mohamad Gebai <mgebai@suse.com>
This commit is contained in:
Sage Weil 2018-06-23 17:05:35 -05:00
commit 2f7595131b
2 changed files with 3 additions and 2 deletions

View File

@ -63,3 +63,4 @@ ErwanAliasr1 Erwan Velu <erwan@redhat.com>
alfredodeza Alfredo Deza <adeza@redhat.com>
dmick Dan Mick <dmick@redhat.com>
aclamk Adam Kupczyk <akucpzyk@redhat.com>
mogeb Mohamad Gebai <mgebai@suse.com>

View File

@ -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 = '+'