aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2005-01-12 12:34:45 +0800
committeredwin <edwin@FreeBSD.org>2005-01-12 12:34:45 +0800
commit8e777f2e633694ea21f253bc6675565afdcd69d3 (patch)
treee6c3925b9f8e4a5a3a9a4c3af31d4f34e3a5a428 /sysutils
parente0bd6d79cd0d1f92ba15299adcce4bb1c067fd72 (diff)
downloadfreebsd-ports-gnome-8e777f2e633694ea21f253bc6675565afdcd69d3.tar.gz
freebsd-ports-gnome-8e777f2e633694ea21f253bc6675565afdcd69d3.tar.zst
freebsd-ports-gnome-8e777f2e633694ea21f253bc6675565afdcd69d3.zip
[ maintainer ] sysutils/torsmo: fix temperature monitoring
- fix temperature monitoring PR: ports/75721 Submitted by: Roman Bogorodskiy <novel@FreeBSD.ORG>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/torsmo/Makefile1
-rw-r--r--sysutils/torsmo/files/patch-freebsd.c11
2 files changed, 11 insertions, 1 deletions
diff --git a/sysutils/torsmo/Makefile b/sysutils/torsmo/Makefile
index 3a0582226579..30732b3f9ada 100644
--- a/sysutils/torsmo/Makefile
+++ b/sysutils/torsmo/Makefile
@@ -7,6 +7,7 @@
PORTNAME= torsmo
PORTVERSION= 0.18
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/sysutils/torsmo/files/patch-freebsd.c b/sysutils/torsmo/files/patch-freebsd.c
index 91b2eca45358..109d6bfb13c2 100644
--- a/sysutils/torsmo/files/patch-freebsd.c
+++ b/sysutils/torsmo/files/patch-freebsd.c
@@ -1,5 +1,5 @@
--- freebsd.c.orig Wed Aug 25 20:24:24 2004
-+++ freebsd.c Wed Dec 29 22:11:31 2004
++++ freebsd.c Sun Jan 2 08:49:26 2005
@@ -4,14 +4,12 @@
#include <stdio.h>
#include <stdlib.h>
@@ -77,6 +77,15 @@
if((sysctl(mib, 2, &boottime, &size, NULL, 0) != -1) && (boottime.tv_sec != 0)) {
time(&now);
+@@ -292,7 +329,7 @@
+ }
+
+ 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");
@@ -344,4 +381,38 @@
char* get_acpi_fan() {