diff options
author | nicolargo <nicolas@nicolargo.com> | 2016-10-01 09:56:48 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2016-10-01 09:56:48 +0200 |
commit | 2acdbe9cf6b404c17f4e6bf5b2538d5ae21ec3f6 (patch) | |
tree | dbe8d0f1bce12f7fca92eec46c87229e2516dc20 /glances/amps_list.py | |
parent | 3a4bf77b79548000d6d2e7e284a1815958d2b9b8 (diff) |
Default AMP ignores enable setting #932
Diffstat (limited to 'glances/amps_list.py')
-rw-r--r-- | glances/amps_list.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/glances/amps_list.py b/glances/amps_list.py index c9020717..cbb0fe22 100644 --- a/glances/amps_list.py +++ b/glances/amps_list.py @@ -106,9 +106,11 @@ class AmpsList(object): """Update the command result attributed.""" # Search application monitored processes by a regular expression processlist = glances_processes.getalllist() - # Iter upon the AMPs dict for k, v in iteritems(self.get()): + if not v.enable(): + # Do not update if the enable tag is set + continue try: amps_list = [p for p in processlist for c in p['cmdline'] if re.search(v.regex(), c) is not None] except TypeError: |