nicolargo 2018-01-28 13:24:04 +01:00
parent c1d5b96faf
commit 0a607808c7

View File

@ -96,7 +96,8 @@ class GlancesProcesses(object):
self.processcount[k] = len(list(filter(lambda v: v['status'] is k,
plist)))
# Compute thread
self.processcount['thread'] = sum(i['num_threads'] for i in plist)
self.processcount['thread'] = sum(i['num_threads'] for i in plist
if i['num_threads'] is not None)
# Compute total
self.processcount['total'] = len(plist)