From f1f6f3a4754dad99e67788057e09205386b20809 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Sat, 26 Sep 2020 19:08:22 +0200 Subject: [PATCH] Fixed cpu sensor check when changing from manual sensor to Auto --- bpytop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bpytop.py b/bpytop.py index fec86f6..5910e08 100755 --- a/bpytop.py +++ b/bpytop.py @@ -4128,8 +4128,9 @@ class Menu: elif key == "right": cpu_sensor_i += 1 if cpu_sensor_i > len(CONFIG.cpu_sensors) - 1: cpu_sensor_i = 0 + Collector.collect_idle.wait() CONFIG.cpu_sensor = CONFIG.cpu_sensors[cpu_sensor_i] - if CONFIG.check_temp and CpuCollector.sensor_method != "psutil": + if CONFIG.check_temp and (CpuCollector.sensor_method != "psutil" or CONFIG.cpu_sensor == "Auto"): CpuCollector.get_sensors() elif key in ["left", "right"] and selected == "view_mode": if key == "left":