diff options
author | nicolargo <nicolashennion@gmail.com> | 2016-04-15 15:05:32 +0200 |
---|---|---|
committer | nicolargo <nicolashennion@gmail.com> | 2016-04-15 15:05:32 +0200 |
commit | 09d87e0a4e41f292843562bd624228e3ab1e6ba5 (patch) | |
tree | 31a6b70e80ccd37a8d58ac9382edcf97fabf9832 /glances/amps_list.py | |
parent | 8efb5e2ac8f9f257485d296609ac401c02bed8e4 (diff) |
Regression on Monitoring list
Diffstat (limited to 'glances/amps_list.py')
-rw-r--r-- | glances/amps_list.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/glances/amps_list.py b/glances/amps_list.py index ff197870..089202bc 100644 --- a/glances/amps_list.py +++ b/glances/amps_list.py @@ -21,7 +21,7 @@ import os import re -import subprocess +import threading from glances.compat import listkeys, iteritems from glances.logger import logger @@ -100,7 +100,10 @@ class AmpsList(object): # At least one process is matching the regex logger.debug("AMPS: {} process detected (PID={})".format(k, amps_list[0]['pid'])) # Call the AMP update method - v.update() + # TODO: should be non blocking + thread = threading.Thread(target=v.update) + thread.start() + # v.update() return self.__amps_dict |