mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-22 08:41:32 +03:00
Correct issue https://github.com/nicolargo/glances/issues/1105#issuecomment-361051196 on MacOS
This commit is contained in:
parent
c1d5b96faf
commit
0a607808c7
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user