summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraristocratos <gnmjpl@gmail.com>2021-04-25 02:10:12 +0200
committeraristocratos <gnmjpl@gmail.com>2021-04-25 02:10:12 +0200
commit884aeb83f558c9a4f1748dd8bdea002291a33686 (patch)
tree10f6ed67e74bb67445e3aed38dfdc49d17956fb3
parente00c8485188ae02f10899b56e6a67648206819e0 (diff)
Fixed: Broken cleanup in ProcBox class
-rwxr-xr-xbpytop.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpytop.py b/bpytop.py
index 8f30555..410f4c2 100755
--- a/bpytop.py
+++ b/bpytop.py
@@ -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]