From d700b87297cfc589e9692b64c6a5c37347caba31 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Mon, 21 Apr 2008 08:57:08 +0000 Subject: Fixed bug with number threshold git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/new_threshold_syntax@1981 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 7f35370..3d0f844 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -354,7 +354,7 @@ main (int argc, char **argv) } 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); -- cgit v0.10-9-g596f