Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sysmon Remove ability to the value_avg since it no l...



details:   https://anonhg.NetBSD.org/src/rev/07622a3a5bc3
branches:  trunk
changeset: 765739:07622a3a5bc3
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Jun 04 13:26:51 2011 +0000

description:
Remove ability to the value_avg since it no longer exists

diffstat:

 sys/dev/sysmon/swsensor.c |  13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diffs (41 lines):

diff -r 81202ba6cf27 -r 07622a3a5bc3 sys/dev/sysmon/swsensor.c
--- a/sys/dev/sysmon/swsensor.c Sat Jun 04 13:25:56 2011 +0000
+++ b/sys/dev/sysmon/swsensor.c Sat Jun 04 13:26:51 2011 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index