mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 22:55:55 +03:00
Fix side effect of commit fcc65bf
psutil's Process.cmdline is a list, so treat it as is.
This commit is contained in:
parent
5f16ba60f4
commit
12f20feb31
@ -128,7 +128,7 @@ class MonitorList(object):
|
||||
|
||||
# Iter upon the monitored list
|
||||
for i in range(len(self.get())):
|
||||
monitoredlist = [p for p in processlist if re.search(self.regex(i), p['cmdline']) is not None]
|
||||
monitoredlist = [p for p in processlist for c in p['cmdline'] if re.search(self.regex(i), c) is not None]
|
||||
self.__monitor_list[i]['count'] = len(monitoredlist)
|
||||
|
||||
# Always get processes CPU and MEM
|
||||
|
Loading…
Reference in New Issue
Block a user