Module Name:    src
Committed By:   pgoyette
Date:           Sun Feb 14 16:22:09 UTC 2010

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

Log Message:
Correct one more instance of checking flags in the wrong place.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/dev/sysmon/sysmon_envsys_events.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/sysmon_envsys_events.c
diff -u src/sys/dev/sysmon/sysmon_envsys_events.c:1.80 src/sys/dev/sysmon/sysmon_envsys_events.c:1.81
--- src/sys/dev/sysmon/sysmon_envsys_events.c:1.80	Sat Feb 13 19:34:14 2010
+++ src/sys/dev/sysmon/sysmon_envsys_events.c	Sun Feb 14 16:22:09 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsys_events.c,v 1.80 2010/02/13 19:34:14 pgoyette Exp $ */
+/* $NetBSD: sysmon_envsys_events.c,v 1.81 2010/02/14 16:22:09 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.80 2010/02/13 19:34:14 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.81 2010/02/14 16:22:09 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -699,7 +699,7 @@
 		((edata->upropset & (valid)) && \
 		 (edata->value_cur rel (edata->limits.lim)))
 
-		if ((edata->limits.sel_flags & PROP_DRIVER_LIMITS) == 0) {
+		if ((edata->upropset & PROP_DRIVER_LIMITS) == 0) {
 			if __EXCEED_LIM(PROP_CRITMIN | PROP_BATTCAP,
 					sel_critmin, <)
 				edata->state = ENVSYS_SCRITUNDER;

Reply via email to