mirror of https://github.com/aristocratos/bpytop
Fixed swap toggle rare crash
parent
d132889159
commit
f61c0006ea
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue