diff options
author | 2006-05-06 15:04:38 +0000 | |
---|---|---|
committer | 2006-05-06 15:04:38 +0000 | |
commit | 81a90f723e74510b1208adc4ca21ebf3f6ac88b5 (patch) | |
tree | fd5056dc4dd9cdeb7a08dfcbf8cd5cd7966874a3 | |
parent | somehow PTDsize got lost from the pae diff; found by kettenis@ (diff) | |
download | wireguard-openbsd-81a90f723e74510b1208adc4ca21ebf3f6ac88b5.tar.xz wireguard-openbsd-81a90f723e74510b1208adc4ca21ebf3f6ac88b5.zip |
if the fan data rate is per second convert it to per minute, ok marco
-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; |