From 3208be592fbe0366c46c55c88cab4544d9067d75 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Mon, 10 Aug 2020 21:50:15 +0200 Subject: [PATCH] Fixed raspberry pi cpu temps, actually fixed this time... --- bpytop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpytop.py b/bpytop.py index 7e88342..ad718ff 100755 --- a/bpytop.py +++ b/bpytop.py @@ -2540,7 +2540,7 @@ class CpuCollector(Collector): if cls.sensor_method == "osx-cpu-temp": temp = round(float(subprocess.check_output("osx-cpu-temp", text=True).strip().rstrip("°C"))) elif cls.sensor_method == "vcgencmd": - temp = round(float(subprocess.check_output(["vcgencmd", "measure_temp"], text=True)[5:-2])) + temp = round(float(subprocess.check_output(["vcgencmd", "measure_temp"], text=True).strip()[5:-2])) except Exception as e: errlog.exception(f'{e}') cls.got_sensors = False