diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/torsmo/Makefile | 2 | ||||
-rw-r--r-- | sysutils/torsmo/files/freebsd.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sysutils/torsmo/Makefile b/sysutils/torsmo/Makefile index 930938e1a2d5..b9281dc2944b 100644 --- a/sysutils/torsmo/Makefile +++ b/sysutils/torsmo/Makefile @@ -7,7 +7,7 @@ PORTNAME= torsmo PORTVERSION= 0.17 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/sysutils/torsmo/files/freebsd.c b/sysutils/torsmo/files/freebsd.c index cd5e9b00d8c2..19916df13dab 100644 --- a/sysutils/torsmo/files/freebsd.c +++ b/sysutils/torsmo/files/freebsd.c @@ -295,8 +295,8 @@ void get_load_average(double v[3]) { } double get_acpi_temperature(int fd) { - double temp; - + int temp; + if (GETSYSCTL("hw.acpi.thermal.tz0.temperature", temp)) { (void)fprintf(stderr, "Cannot read sysctl \"hw.acpi.thermal.tz0.temperature\"\n"); temp = -1.0; |