diff --git a/nightskycam/location_info/runner.py b/nightskycam/location_info/runner.py index 45e236f..770f602 100644 --- a/nightskycam/location_info/runner.py +++ b/nightskycam/location_info/runner.py @@ -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}")