Add temperature readings in thinkpad (#252)

This commit is contained in:
alexmak23 2021-10-10 14:20:33 +08:00 committed by GitHub
parent 6cb2c00786
commit 5d24f0e451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -998,6 +998,8 @@ def sysinfo():
temp_per_cpu = [core_temp["zenpower"][0].current] * online_cpu_count temp_per_cpu = [core_temp["zenpower"][0].current] * online_cpu_count
elif "acpitz" in core_temp: elif "acpitz" in core_temp:
temp_per_cpu = [core_temp["acpitz"][0].current] * online_cpu_count temp_per_cpu = [core_temp["acpitz"][0].current] * online_cpu_count
elif "thinkpad" in core_temp:
temp_per_cpu = [core_temp["thinkpad"][0].current] * online_cpu_count
except Exception as e: except Exception as e:
print(repr(e)) print(repr(e))
pass pass