Hide config list works for diskio interface

This commit is contained in:
Nicolas Hennion 2014-03-28 13:09:25 +01:00
parent fb3745d8b6
commit 43885f8c3f

View File

@ -128,6 +128,9 @@ class Plugin(GlancesPlugin):
ret.append(self.curse_add_line(msg))
# Disk list (sorted by name)
for i in sorted(self.stats, key=lambda diskio: diskio['disk_name']):
# Do not display hidden interfaces
if (self.is_hide(i['disk_name'])):
continue
# New line
ret.append(self.curse_new_line())
msg = "{0:8}".format(i['disk_name'])