summaryrefslogtreecommitdiffstats
path: root/glances/amps_list.py
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2020-07-21 10:26:40 +0200
committernicolargo <nicolas@nicolargo.com>2020-07-21 10:26:40 +0200
commit05897a61dd0a1da366e2f27231cbf0df19bebfb2 (patch)
tree4d96683b0c9d208b37ff23e6fd55dae12c73cccd /glances/amps_list.py
parent219c4de08f240320cae96e0a5a4a082db45a06da (diff)
Enhancement Request: .conf parameter for AMP #1690
Diffstat (limited to 'glances/amps_list.py')
-rw-r--r--glances/amps_list.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/glances/amps_list.py b/glances/amps_list.py
index a0b71d7d..1837aec4 100644
--- a/glances/amps_list.py
+++ b/glances/amps_list.py
@@ -112,6 +112,14 @@ class AmpsList(object):
if not v.enable():
# Do not update if the enable tag is set
continue
+
+ if v.regex() is None:
+ # If there is no regex, execute anyway (see issue #1690)
+ v.set_count(0)
+ # Call the AMP update method
+ thread = threading.Thread(target=v.update_wrapper, args=[[]])
+ thread.start()
+ continue
amps_list = self._build_amps_list(v, processlist)