From 752dbc20b2bfbeb2b7d253b67fa6eda3adefb8c6 Mon Sep 17 00:00:00 2001 From: tonvoon Date: Wed, 30 Jun 2010 07:56:05 +0000 Subject: Tests for --rate-multiplier option --- plugins/check_snmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_snmp.c') diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index b16428fe..f8cae9b6 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -798,7 +798,7 @@ process_arguments (int argc, char **argv) calculate_rate = 1; break; case L_RATE_MULTIPLIER: - if(!is_integer(optarg)||(rate_multiplier=atoi(optarg)<=0)) + if(!is_integer(optarg)||((rate_multiplier=atoi(optarg))<=0)) usage2(_("Rate multiplier must be a positive integer"),optarg); break; case L_INVERT_SEARCH: -- cgit v1.2.3-74-g34f1