Fixed: Broken cleanup in ProcBox class

pull/295/head
aristocratos 2021-04-25 02:10:12 +02:00
parent e00c848518
commit 884aeb83f5
1 changed files with 1 additions and 1 deletions

View File

@ -2852,7 +2852,7 @@ class ProcBox(Box):
#* Clean up dead processes graphs and counters
cls.count += 1
if cls.count == 100:
cls.count == 0
cls.count = 0
for p in list(cls.pid_counter):
if not psutil.pid_exists(p):
del cls.pid_counter[p], Graphs.pid_cpu[p]