glances_percpu.py: total: python3 fix

This commit is contained in:
Alessio Sergi 2015-05-28 20:08:28 +02:00
parent 0b174d11db
commit 8c30ab1942

View File

@ -63,7 +63,7 @@ class Plugin(GlancesPlugin):
for cputimes in percpu_times_percent:
cpu = {'key': self.get_key(),
'cpu_number': str(cpu_number),
'total': 100 - cputimes.idle,
'total': round(100 - cputimes.idle, 1),
'user': cputimes.user,
'system': cputimes.system,
'idle': cputimes.idle}