Module Name:    src
Committed By:   pgoyette
Date:           Sat Jun  4 13:26:52 UTC 2011

Modified Files:
        src/sys/dev/sysmon: swsensor.c

Log Message:
Remove ability to the value_avg since it no longer exists


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/sysmon/swsensor.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/sysmon/swsensor.c
diff -u src/sys/dev/sysmon/swsensor.c:1.8 src/sys/dev/sysmon/swsensor.c:1.9
--- src/sys/dev/sysmon/swsensor.c:1.8	Sat Jun  4 02:02:55 2011
+++ src/sys/dev/sysmon/swsensor.c	Sat Jun  4 13:26:51 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: swsensor.c,v 1.8 2011/06/04 02:02:55 pgoyette Exp $ */
+/*	$NetBSD: swsensor.c,v 1.9 2011/06/04 13:26:51 pgoyette Exp $ */
 /*
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: swsensor.c,v 1.8 2011/06/04 02:02:55 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: swsensor.c,v 1.9 2011/06/04 13:26:51 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -234,7 +234,7 @@
 	if (po != NULL && prop_object_type(po) == PROP_TYPE_NUMBER)
 		sw_sensor_value = prop_number_integer_value(po);
 
-	/* Retrieve any value_{max,min,avg} that might be present */
+	/* Retrieve any value_{max,min} that might be present */
 	if (pd != NULL) {
 		po = prop_dictionary_get(pd, "value_max");
 		if (po != NULL && prop_object_type(po) == PROP_TYPE_NUMBER) {
@@ -249,13 +249,6 @@
 			    prop_number_integer_value(po);
 			swsensor_edata.flags |= ENVSYS_FVALID_MIN;
 		}
-
-		po = prop_dictionary_get(pd, "value_avg");
-		if (po != NULL && prop_object_type(po) == PROP_TYPE_NUMBER) {
-			swsensor_edata.value_avg =
-			    prop_number_integer_value(po);
-			swsensor_edata.flags |= ENVSYS_FVALID_AVG;
-		}
 	}
 
 	/* See if this sensor should report percentages vs raw values */

Reply via email to