|
@@ 324-330 (lines=7) @@
|
| 321 |
|
if 'steal' in self.stats: |
| 322 |
|
msg = ' {:8}'.format('steal:') |
| 323 |
|
ret.append(self.curse_add_line(msg, optional=self.get_views(key='steal', option='optional'))) |
| 324 |
|
msg = '{:>5}%'.format(self.stats['steal']) |
| 325 |
|
ret.append(self.curse_add_line( |
| 326 |
|
msg, self.get_views(key='steal', option='decoration'), |
| 327 |
|
optional=self.get_views(key='steal', option='optional'))) |
| 328 |
|
# syscalls |
| 329 |
|
# syscalls: number of system calls since boot. Always set to 0 on Linux. (do not display) |
| 330 |
|
if 'syscalls' in self.stats and not LINUX: |
| 331 |
|
msg = ' {:8}'.format('syscal:') |
| 332 |
|
ret.append(self.curse_add_line(msg, optional=self.get_views(key='syscalls', option='optional'))) |
| 333 |
|
msg = '{:>5}'.format(int(self.stats['syscalls'] // self.stats['time_since_update'])) |
|
@@ 251-257 (lines=7) @@
|
| 248 |
|
if 'ctx_switches' in self.stats: |
| 249 |
|
msg = ' {:8}'.format('ctx_sw:') |
| 250 |
|
ret.append(self.curse_add_line(msg, optional=self.get_views(key='ctx_switches', option='optional'))) |
| 251 |
|
msg = '{:>5}'.format(int(self.stats['ctx_switches'] // self.stats['time_since_update'])) |
| 252 |
|
ret.append(self.curse_add_line( |
| 253 |
|
msg, self.get_views(key='ctx_switches', option='decoration'), |
| 254 |
|
optional=self.get_views(key='ctx_switches', option='optional'))) |
| 255 |
|
|
| 256 |
|
# New line |
| 257 |
|
ret.append(self.curse_new_line()) |
| 258 |
|
# User CPU |
| 259 |
|
if 'user' in self.stats: |
| 260 |
|
msg = '{:8}'.format('user:') |
|
@@ 309-313 (lines=5) @@
|
| 306 |
|
if 'soft_interrupts' in self.stats: |
| 307 |
|
msg = ' {:8}'.format('sw_int:') |
| 308 |
|
ret.append(self.curse_add_line(msg, optional=self.get_views(key='soft_interrupts', option='optional'))) |
| 309 |
|
msg = '{:>5}'.format(int(self.stats['soft_interrupts'] // self.stats['time_since_update'])) |
| 310 |
|
ret.append(self.curse_add_line(msg, optional=self.get_views(key='soft_interrupts', option='optional'))) |
| 311 |
|
|
| 312 |
|
# New line |
| 313 |
|
ret.append(self.curse_new_line()) |
| 314 |
|
# Idle CPU |
| 315 |
|
if 'idle' in self.stats and not idle_tag: |
| 316 |
|
msg = '{:8}'.format('idle:') |