glances.conf FS hide not applying #1666

pull/2160/head
nicolargo 2022-10-16 09:42:24 +02:00
parent 0ac1bcb76b
commit 5947e9da36
1 changed files with 7 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class Plugin(GlancesPlugin):
# Loop over fs
for fs in fs_stat:
# Shall we display the stats ?
# Hide the stats if the mount point is in the exclude list
if not self.is_display(fs.mountpoint):
continue
@ -128,6 +128,12 @@ class Plugin(GlancesPlugin):
'percent': fs_usage.percent,
'key': self.get_key(),
}
# Hide the stats if the device name is in the exclude list
# Correct issue: glances.conf FS hide not applying #1666
if not self.is_display(fs_current['device_name']):
continue
stats.append(fs_current)
elif self.input_method == 'snmp':