mirror of
https://github.com/nicolargo/glances.git
synced 2025-01-02 06:27:55 +03:00
Merge branch 'issue1691' into develop
This commit is contained in:
commit
aa73127d2e
@ -761,7 +761,9 @@ class GlancesPlugin(object):
|
|||||||
hide=sda2,sda5,loop.*
|
hide=sda2,sda5,loop.*
|
||||||
"""
|
"""
|
||||||
# TODO: possible optimisation: create a re.compile list
|
# TODO: possible optimisation: create a re.compile list
|
||||||
return not all(j is None for j in [re.match(i, value.lower()) for i in self.get_conf_value('hide', header=header)])
|
# Old version (see issue #1691)
|
||||||
|
#return not all(j is None for j in [re.match(i, value.lower()) for i in self.get_conf_value('hide', header=header)])
|
||||||
|
return any(j for j in [re.match(i, value) for i in self.get_conf_value('hide', header=header)])
|
||||||
|
|
||||||
def has_alias(self, header):
|
def has_alias(self, header):
|
||||||
"""Return the alias name for the relative header or None if nonexist."""
|
"""Return the alias name for the relative header or None if nonexist."""
|
||||||
|
Loading…
Reference in New Issue
Block a user