summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ipmi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c
index 0159a53e0e4..b15bfd6483f 100644
--- a/sys/dev/ipmi.c
+++ b/sys/dev/ipmi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmi.c,v 1.36 2006/04/27 15:28:21 mickey Exp $ */
+/* $OpenBSD: ipmi.c,v 1.37 2006/05/06 15:04:38 wilfried Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave
@@ -1360,6 +1360,8 @@ ipmi_sensor_status(struct ipmi_softc *sc, struct ipmi_sensor *psensor,
case SENSOR_FANRPM:
psensor->i_sensor.value = ipmi_convert(reading[0], s1, 0);
+ if (((s1->units1>>3)&0x7) == 0x3)
+ psensor->i_sensor.value *= 60; // RPS -> RPM
break;
default:
break;