@@ 293-303 (lines=11) @@ | ||
290 | # New line |
|
291 | ret.append(self.curse_new_line()) |
|
292 | # System CPU |
|
293 | if 'system' in self.stats and not idle_tag: |
|
294 | msg = '{:8}'.format('system:') |
|
295 | ret.append(self.curse_add_line(msg)) |
|
296 | msg = '{:5.1f}%'.format(self.stats['system']) |
|
297 | ret.append(self.curse_add_line( |
|
298 | msg, self.get_views(key='system', option='decoration'))) |
|
299 | else: |
|
300 | msg = '{:8}'.format('core:') |
|
301 | ret.append(self.curse_add_line(msg)) |
|
302 | msg = '{:>6}'.format(self.stats['nb_log_core']) |
|
303 | ret.append(self.curse_add_line(msg)) |
|
304 | # IOWait CPU |
|
305 | if 'iowait' in self.stats: |
|
306 | msg = ' {:8}'.format('iowait:') |
|
@@ 266-276 (lines=11) @@ | ||
263 | # New line |
|
264 | ret.append(self.curse_new_line()) |
|
265 | # User CPU |
|
266 | if 'user' in self.stats: |
|
267 | msg = '{:8}'.format('user:') |
|
268 | ret.append(self.curse_add_line(msg)) |
|
269 | msg = '{:5.1f}%'.format(self.stats['user']) |
|
270 | ret.append(self.curse_add_line( |
|
271 | msg, self.get_views(key='user', option='decoration'))) |
|
272 | elif 'idle' in self.stats: |
|
273 | msg = '{:8}'.format('idle:') |
|
274 | ret.append(self.curse_add_line(msg)) |
|
275 | msg = '{:5.1f}%'.format(self.stats['idle']) |
|
276 | ret.append(self.curse_add_line(msg)) |
|
277 | # IRQ CPU |
|
278 | if 'irq' in self.stats: |
|
279 | msg = ' {:8}'.format('irq:') |