[Nagiosplug-checkins] SF.net SVN: nagiosplug: [1981] nagiosplug/branches/new_threshold_syntax/ plugins/check_procs.c

tonvoon at users.sourceforge.net tonvoon at users.sourceforge.net
Mon Apr 21 10:57:09 CEST 2008


Revision: 1981
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1981&view=rev
Author:   tonvoon
Date:     2008-04-21 01:57:08 -0700 (Mon, 21 Apr 2008)

Log Message:
-----------
Fixed bug with number threshold

Modified Paths:
--------------
    nagiosplug/branches/new_threshold_syntax/plugins/check_procs.c

Modified: nagiosplug/branches/new_threshold_syntax/plugins/check_procs.c
===================================================================
--- nagiosplug/branches/new_threshold_syntax/plugins/check_procs.c	2008-04-21 08:38:43 UTC (rev 1980)
+++ nagiosplug/branches/new_threshold_syntax/plugins/check_procs.c	2008-04-21 08:57:08 UTC (rev 1981)
@@ -354,7 +354,7 @@
 	}
 
 	if (number_threshold != NULL) {
-		if (i = get_status( procs, number_threshold ) != STATE_OK) {
+		if ((i = get_status( procs, number_threshold )) != STATE_OK) {
 			actions_on_failed_state(i, "NUMBER_OF_PROCESSES");
 			if (verbose >= 2) {
 				printf("NUMBER: total_procs=%d ", procs);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list