summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorConstantine A. Murenin <cnst@cvs.openbsd.org>2009-04-19 21:50:03 +0000
committerConstantine A. Murenin <cnst@cvs.openbsd.org>2009-04-19 21:50:03 +0000
commit170f6c5d952842275deb05d0ec25ff27f3e4c339 (patch)
treead3e37403b739fe36740a47d8cf8506d2cd58bd1 /sys/dev
parent29aff3399ac1323f329b8dbfb5bf43de93362774 (diff)
zero temperature in acpi refers to -273,2degC -- convert to uK appropriately; ok deraadt marco
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/acpitz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpitz.c b/sys/dev/acpi/acpitz.c
index 7dfc4699d71..91eb0bde3e3 100644
--- a/sys/dev/acpi/acpitz.c
+++ b/sys/dev/acpi/acpitz.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpitz.c,v 1.29 2009/03/11 21:54:15 jordan Exp $ */
+/* $OpenBSD: acpitz.c,v 1.30 2009/04/19 21:50:02 cnst Exp $ */
/*
* Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org>
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
@@ -337,7 +337,7 @@ acpitz_refresh(void *arg)
acpitz_setfan(sc, i, "_OFF");
}
}
- sc->sc_sens.value = sc->sc_tmp * 100000;
+ sc->sc_sens.value = sc->sc_tmp * 100000 - 50000;
}
int