summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBaptiste Daroussin <baptiste.daroussin@gmail.com>2017-02-01 20:28:01 +0100
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2017-02-01 11:28:01 -0800
commit93576bccc3acff95206933cc1486e0d01c15316e (patch)
treeef48a083a8d83ac6d8014970ffc41ddef5d4b201 /src
parente09186fa19c82f2899d4f1559970ea3421c7618d (diff)
Fix the deciKelvin to Celsius conversion on FreeBSD (#195)
Change from ceiled value to floored value to be consistent with the FreeBSD kernel https://svnweb.freebsd.org/base?view=revision&revision=300421
Diffstat (limited to 'src')
-rw-r--r--src/print_cpu_temperature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_cpu_temperature.c b/src/print_cpu_temperature.c
index 57cb114..56ab62a 100644
--- a/src/print_cpu_temperature.c
+++ b/src/print_cpu_temperature.c
@@ -13,7 +13,7 @@
#include <err.h>
#include <sys/types.h>
#include <sys/sysctl.h>
-#define TZ_ZEROC 2732
+#define TZ_ZEROC 2731
#define TZ_KELVTOC(x) (((x)-TZ_ZEROC) / 10), abs(((x)-TZ_ZEROC) % 10)
#define TZ_AVG(x) ((x)-TZ_ZEROC) / 10
#endif