Correct io_counters error client/server Issue #164

This commit is contained in:
Nicolas Hennion 2013-01-18 11:28:15 +01:00
parent 94a7cc57ca
commit 8334dd2f93

View File

@ -2656,8 +2656,9 @@ class glancesScreen:
format(dtime, '>8'), 8)
# IO
if tag_io:
if processlist[processes]['io_counters'][4] == 0:
# If io_tag == 0 (['io_counters'][4])
if ((processlist[processes]['io_counters'] == {})
or (processlist[processes]['io_counters'][4] == 0)):
# If Nodata or io_tag == 0 (['io_counters'][4])
# then do not diplay IO rate
self.term_window.addnstr(
self.process_y + 3 + processes, process_x + 56,