Skip to content

Commit

Permalink
Temperature only on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
lukipuki committed Jun 9, 2024
1 parent bccac28 commit 8e79df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/yaroc/utils/sys_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def create_sys_minicallhome() -> MiniCallHome:
logging.error(err)
logging.error(result.stdout)

else:
elif not is_windows():
temperatures = psutil.sensors_temperatures()
# TODO: make this more general than ThinkPad
cpu_temp = next(filter(lambda x: x.label == "CPU", temperatures["thinkpad"]))
Expand Down

0 comments on commit 8e79df1

Please sign in to comment.