Date: Sun, 24 Oct 2004 20:17:27 +0400 From: Roman Bogorodskiy <bogorodskiy@inbox.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/73087: [ maintainer ] sysutils/torsmo: acpitemp fix Message-ID: <E1CLl3e-00057F-00.bogorodskiy-inbox-ru@mx1.mail.ru> Resent-Message-ID: <200410241620.i9OGKPDx033085@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 73087 >Category: ports >Synopsis: [ maintainer ] sysutils/torsmo: acpitemp fix >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Oct 24 16:20:24 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Roman Bogorodskiy >Release: FreeBSD 5.3-BETA7 i386 >Organization: >Environment: System: FreeBSD lame.novel.ru 5.3-BETA7 FreeBSD 5.3-BETA7 #12: Sat Oct 16 20:09:15 MSD 2004 root@lame.novel.ru:/usr/obj/usr/home/novel/current/src/sys/NOVEL i386 >Description: Fix acpitemp function by changing type from double to int (we get temp in kelvins (int) and then convert it in celsius (double)). Reported by Aurel Bodenmann. >How-To-Repeat: >Fix: diff -ru torsmo.orig/Makefile torsmo/Makefile --- torsmo.orig/Makefile Sun Oct 24 19:57:21 2004 +++ torsmo/Makefile Sun Oct 24 20:01:36 2004 @@ -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 -ru torsmo.orig/files/freebsd.c torsmo/files/freebsd.c --- torsmo.orig/files/freebsd.c Sun Oct 24 19:57:21 2004 +++ torsmo/files/freebsd.c Sun Oct 24 19:59:05 2004 @@ -295,8 +295,8 @@ } 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; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1CLl3e-00057F-00.bogorodskiy-inbox-ru>