mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
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:
commit
2f7595131b
@ -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>
|
||||
|
@ -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 = '+'
|
||||
|
Loading…
Reference in New Issue
Block a user