mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 05:42:57 +03:00
Glances PerCPU issues with Curses UI on Android (issue #1071)
This commit is contained in:
parent
ceba55d7b6
commit
42bc667c3f
4
NEWS
4
NEWS
@ -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('?')
|
||||
|
Loading…
Reference in New Issue
Block a user