Replace cmdline per name when filter Idle process ! Fuck... Had to sleep...

This commit is contained in:
Nicolas Hennion 2012-12-18 22:33:19 +01:00
parent 2951682ee1
commit 7f4f1a4be4

View File

@ -530,8 +530,8 @@ class GlancesGrabProcesses:
procstat = self.__get_process_stats__(proc)
# Ignore the 'idle' process on Windows or Bsd
# Waiting upstream patch from PsUtil
if ((is_Bsd and (procstat['cmdline'] == 'idle'))
or (is_Windows and (procstat['cmdline'] == 'System Idle Process'))):
if ((is_Bsd and (procstat['name'] == 'idle'))
or (is_Windows and (procstat['name'] == 'System Idle Process'))):
continue
# Update processlist
self.processlist.append(procstat)