parent
4e5f91e89d
commit
fce59b883c
@ -109,15 +109,15 @@ class CpuUsage(IntervalModule):
|
||||
|
||||
usage['usage_' + cpu] = cpu_usage
|
||||
|
||||
# for backward compatibility
|
||||
usage['usage'] = usage['usage_cpu']
|
||||
|
||||
return usage
|
||||
|
||||
def run(self):
|
||||
usage = self.get_usage()
|
||||
usage['usage_all'] = self.gen_format_all(usage)
|
||||
|
||||
# for backward compatibility
|
||||
usage['usage'] = usage['usage_cpu']
|
||||
|
||||
self.data = usage
|
||||
self.output = {
|
||||
"full_text": self.format.format_map(usage),
|
||||
|
Loading…
Reference in New Issue
Block a user