Skip to content

Commit

Permalink
fixed cpu temperature bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Berenz committed Oct 28, 2024
1 parent 64178aa commit 83eb7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nightskycam/location_info/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def iterate(self) -> None:
command = "cat /sys/class/thermal/thermal_zone0/temp"
output = subprocess.run(command, capture_output=True, shell=True)
location["cpu_temperature"] = str(
float(output.stdout.decode("utf-8")) / 1000.0
int(float(output.stdout.decode("utf-8")) / 1000.0)
)
except Exception as e:
errors.append(f"failed to read the temperature of the CPU: {e}")
Expand Down

0 comments on commit 83eb7d7

Please sign in to comment.