mirror of
https://github.com/nicolargo/glances.git
synced 2025-01-06 09:47:09 +03:00
Add missing softirq stat against total CPU usage
This commit is contained in:
parent
e35239ead1
commit
6acd6cc6ca
@ -1496,6 +1496,9 @@ class GlancesStats:
|
||||
if hasattr(self.cputime_new, 'irq'):
|
||||
self.cpu['irq'] = (self.cputime_new.irq -
|
||||
self.cputime_old.irq) * percent
|
||||
if hasattr(self.cputime_new, 'softirq'):
|
||||
self.cpu['softirq'] = (self.cputime_new.softirq -
|
||||
self.cputime_old.softirq) * percent
|
||||
self.cputime_old = self.cputime_new
|
||||
self.cputime_total_old = self.cputime_total_new
|
||||
except Exception:
|
||||
|
Loading…
Reference in New Issue
Block a user