pull/405/merge
Branch Vincent 2025-06-01 22:58:10 +02:00 committed by GitHub
commit 963c066aab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -3225,7 +3225,7 @@ class CpuCollector(Collector):
cls.cpu_temp_high = 85
cls.cpu_temp_crit = 100
elif cls.sensor_method == "osx-cpu-temp":
temp = max(0, round(float(subprocess.check_output("osx-cpu-temp", universal_newlines=True).strip()[:-2])))
temp = max(0, round(float(subprocess.check_output("osx-cpu-temp", universal_newlines=True).splitlines()[-1].strip()[:-2])))
if not cls.cpu_temp_high:
cls.cpu_temp_high = 85
cls.cpu_temp_crit = 100