mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-25 10:12:55 +03:00
Hide config list works for diskio interface
This commit is contained in:
parent
fb3745d8b6
commit
43885f8c3f
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user