Module Name: src Committed By: pgoyette Date: Sat Jun 4 13:29:03 UTC 2011
Modified Files: src/usr.sbin/envstat: envstat.c Log Message: Since there is no longer a value-avg property, remove the code that extracts it. To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/usr.sbin/envstat/envstat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/envstat/envstat.c diff -u src/usr.sbin/envstat/envstat.c:1.85 src/usr.sbin/envstat/envstat.c:1.86 --- src/usr.sbin/envstat/envstat.c:1.85 Thu Dec 16 14:37:23 2010 +++ src/usr.sbin/envstat/envstat.c Sat Jun 4 13:29:02 2011 @@ -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)