summaryrefslogtreecommitdiff
path: root/psutil/arch/freebsd/sensors.c
diff options
context:
space:
mode:
Diffstat (limited to 'psutil/arch/freebsd/sensors.c')
-rw-r--r--psutil/arch/freebsd/sensors.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/psutil/arch/freebsd/sensors.c b/psutil/arch/freebsd/sensors.c
index 0042adbe..08a882dd 100644
--- a/psutil/arch/freebsd/sensors.c
+++ b/psutil/arch/freebsd/sensors.c
@@ -20,7 +20,7 @@ For reference, here's the git history with original(ish) implementations:
#include "../../_psutil_posix.h"
-#define DECIKELVIN_2_CELCIUS(t) (t - 2731) / 10
+#define DECIKELVIN_2_CELSIUS(t) (t - 2731) / 10
PyObject *
@@ -62,13 +62,13 @@ psutil_sensors_cpu_temperature(PyObject *self, PyObject *args) {
sprintf(sensor, "dev.cpu.%d.temperature", core);
if (sysctlbyname(sensor, &current, &size, NULL, 0))
goto error;
- current = DECIKELVIN_2_CELCIUS(current);
+ current = DECIKELVIN_2_CELSIUS(current);
// Return -273 in case of failure.
sprintf(sensor, "dev.cpu.%d.coretemp.tjmax", core);
if (sysctlbyname(sensor, &tjmax, &size, NULL, 0))
tjmax = 0;
- tjmax = DECIKELVIN_2_CELCIUS(tjmax);
+ tjmax = DECIKELVIN_2_CELSIUS(tjmax);
return Py_BuildValue("ii", current, tjmax);