diff options
author | Peter Stromberg <wilfried@cvs.openbsd.org> | 2006-05-06 15:04:39 +0000 |
---|---|---|
committer | Peter Stromberg <wilfried@cvs.openbsd.org> | 2006-05-06 15:04:39 +0000 |
commit | 5bc0c5ebb7dd608b866676a5ae5ca6a43f9ef018 (patch) | |
tree | bdd39eb3481b24ebaf2b94c4ec7ada6dd17a9694 /sys/dev | |
parent | ca97712ba2f98103c2975a26058d50595a66adb3 (diff) |
if the fan data rate is per second convert it to per minute, ok marco
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ipmi.c | 4 |
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; |