From 5bc0c5ebb7dd608b866676a5ae5ca6a43f9ef018 Mon Sep 17 00:00:00 2001 From: Peter Stromberg Date: Sat, 6 May 2006 15:04:39 +0000 Subject: if the fan data rate is per second convert it to per minute, ok marco --- sys/dev/ipmi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev') 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; -- cgit v1.2.3