FreeBSD Bugzilla – Attachment 49599 Details for
Bug 75721
[ maintainer ] sysutils/torsmo: fix temperature monitoring
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
port.torsmo.temp_fix
port.torsmo.temp_fix (text/plain), 830 bytes, created by
Roman Bogorodskiy
on 2005-01-02 14:50:50 UTC
(
hide
)
Description:
port.torsmo.temp_fix
Filename:
MIME Type:
Creator:
Roman Bogorodskiy
Created:
2005-01-02 14:50:50 UTC
Size:
830 bytes
patch
obsolete
>diff -ru torsmo.orig/files/patch-freebsd.c torsmo/files/patch-freebsd.c >--- torsmo.orig/files/patch-freebsd.c Sun Jan 2 08:51:00 2005 >+++ torsmo/files/patch-freebsd.c Sun Jan 2 08:52:24 2005 >@@ -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() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 75721
: 49599