From f61c0006ea4e5dd1e9938918411f3219e8d1adf0 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Tue, 22 Sep 2020 17:55:04 +0200 Subject: [PATCH] Fixed swap toggle rare crash --- bpytop.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bpytop.py b/bpytop.py index 0fd3b16..8b8459c 100755 --- a/bpytop.py +++ b/bpytop.py @@ -4593,6 +4593,7 @@ def process_keys(): CONFIG.mem_graphs = not CONFIG.mem_graphs Collector.collect(MemCollector, interrupt=True, redraw=True) elif key == "s": + Collector.collect_idle.wait() CONFIG.swap_disk = not CONFIG.swap_disk Collector.collect(MemCollector, interrupt=True, redraw=True) elif key == "f":