Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/envstat Since there is no longer a value-avg proper...



details:   https://anonhg.NetBSD.org/src/rev/61e0411245f3
branches:  trunk
changeset: 765741:61e0411245f3
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Jun 04 13:29:02 2011 +0000

description:
Since there is no longer a value-avg property, remove the code that
extracts it.

diffstat:

 usr.sbin/envstat/envstat.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (38 lines):

diff -r cd9a9085deae -r 61e0411245f3 usr.sbin/envstat/envstat.c
--- a/usr.sbin/envstat/envstat.c        Sat Jun 04 13:27:57 2011 +0000
+++ b/usr.sbin/envstat/envstat.c        Sat Jun 04 13:29:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: envstat.c,v 1.85 2010/12/16 14:37:23 pgoyette Exp $ */
+/* $NetBSD: envstat.c,v 1.86 2011/06/04 13:29:02 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: envstat.c,v 1.85 2010/12/16 14:37:23 pgoyette Exp $");
+__RCSID("$NetBSD: envstat.c,v 1.86 2011/06/04 13:29:02 pgoyette Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -65,7 +65,6 @@
        int32_t cur_value;
        int32_t max_value;
        int32_t min_value;
-       int32_t avg_value;
        int32_t critmin_value;
        int32_t critmax_value;
        int32_t warnmin_value;
@@ -559,11 +558,6 @@
                if (obj1)
                        sensor->min_value = prop_number_integer_value(obj1);
 
-               /* get avg value */
-               obj1 = prop_dictionary_get(obj, "avg-value");
-               if (obj1)
-                       sensor->avg_value = prop_number_integer_value(obj1);
-
                /* get percentage flag */
                obj1 = prop_dictionary_get(obj, "want-percentage");
                if (obj1)



Home | Main Index | Thread Index | Old Index