提交 1b8f955e 编写于 作者: N nicolargo

Merge branch 'issue1071' into develop

......@@ -5,7 +5,9 @@ Glances Version 2
Version 2.9.1
=============
...
Bugs corrected:
* Glances PerCPU issues with Curses UI on Android (issue #1071)
Version 2.9.0
=============
......
......@@ -85,7 +85,7 @@ class Plugin(GlancesPlugin):
# Total per-CPU usage
for cpu in self.stats:
try:
msg = '{:>6}%'.format(cpu['total'])
msg = '{:6.1f}%'.format(cpu['total'])
except TypeError:
# TypeError: string indices must be integers (issue #1027)
msg = '{:>6}%'.format('?')
......@@ -101,7 +101,7 @@ class Plugin(GlancesPlugin):
ret.append(self.curse_add_line(msg))
for cpu in self.stats:
try:
msg = '{:>6}%'.format(cpu[stat])
msg = '{:6.1f}%'.format(cpu[stat])
except TypeError:
# TypeError: string indices must be integers (issue #1027)
msg = '{:>6}%'.format('?')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册