mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 22:55:55 +03:00
Merge pull request #756 from nclsHart/fix-webui-hide-interface
Fix hide interface config not take into account in web ui
This commit is contained in:
commit
201e287345
@ -97,6 +97,11 @@ class Plugin(GlancesPlugin):
|
||||
# By default, RamFS is not displayed (issue #714)
|
||||
if self.args is not None and not self.args.diskio_show_ramfs and disk.startswith('ram'):
|
||||
continue
|
||||
|
||||
# Do not display hidden interfaces
|
||||
if self.is_hide(disk):
|
||||
continue
|
||||
|
||||
# Compute bitrate
|
||||
try:
|
||||
read_bytes = (diskio_new[disk].read_bytes -
|
||||
@ -162,9 +167,6 @@ class Plugin(GlancesPlugin):
|
||||
ret.append(self.curse_add_line(msg))
|
||||
# Disk list (sorted by name)
|
||||
for i in sorted(self.stats, key=operator.itemgetter(self.get_key())):
|
||||
# Do not display hidden interfaces
|
||||
if self.is_hide(i['disk_name']):
|
||||
continue
|
||||
# Is there an alias for the disk name ?
|
||||
disk_real_name = i['disk_name']
|
||||
disk_name = self.has_alias(i['disk_name'])
|
||||
|
Loading…
Reference in New Issue
Block a user