From 12f20feb31e584dbb9b1ad2748a012cdc7dd4452 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 7 Mar 2016 13:00:13 +0100 Subject: [PATCH] Fix side effect of commit fcc65bf psutil's Process.cmdline is a list, so treat it as is. --- glances/monitor_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/monitor_list.py b/glances/monitor_list.py index 4f517703..4243b630 100644 --- a/glances/monitor_list.py +++ b/glances/monitor_list.py @@ -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