mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-22 16:51:35 +03:00
ZeroDivisionError in IO Rate (ProcessList) #1220
This commit is contained in:
parent
7ba8448b82
commit
01c6fbe80f
@ -323,7 +323,7 @@ class Plugin(GlancesPlugin):
|
|||||||
msg = '{:>10}'.format('?')
|
msg = '{:>10}'.format('?')
|
||||||
ret.append(self.curse_add_line(msg, optional=True))
|
ret.append(self.curse_add_line(msg, optional=True))
|
||||||
# IO read/write
|
# IO read/write
|
||||||
if 'io_counters' in p and p['io_counters'][4] == 1:
|
if 'io_counters' in p and p['io_counters'][4] == 1 and p['time_since_update'] != 0:
|
||||||
# Display rate if stats is available and io_tag ([4]) == 1
|
# Display rate if stats is available and io_tag ([4]) == 1
|
||||||
# IO read
|
# IO read
|
||||||
io_rs = int((p['io_counters'][0] - p['io_counters'][2]) / p['time_since_update'])
|
io_rs = int((p['io_counters'][0] - p['io_counters'][2]) / p['time_since_update'])
|
||||||
|
Loading…
Reference in New Issue
Block a user