[Nagiosplug-checkins] CVS: nagiosplug/plugins check_http.c,1.57,1.58

Karl DeBisschop kdebisschop at users.sourceforge.net
Mon Mar 1 21:38:01 CET 2004


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5120/plugins

Modified Files:
	check_http.c 
Log Message:
relax check for -w/-c to accept floats (bug report from Warrick FitzGerald)

Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -r1.57 -r1.58
*** check_http.c	20 Feb 2004 19:35:51 -0000	1.57
--- check_http.c	2 Mar 2004 05:25:33 -0000	1.58
***************
*** 256,260 ****
  			break;
  		case 'c': /* critical time threshold */
! 			if (!is_intnonneg (optarg))
  				usage2 (_("invalid critical threshold"), optarg);
  			else {
--- 256,260 ----
  			break;
  		case 'c': /* critical time threshold */
! 			if (!is_nonnegative (optarg))
  				usage2 (_("invalid critical threshold"), optarg);
  			else {
***************
*** 264,268 ****
  			break;
  		case 'w': /* warning time threshold */
! 			if (!is_intnonneg (optarg))
  				usage2 (_("invalid warning threshold"), optarg);
  			else {
--- 264,268 ----
  			break;
  		case 'w': /* warning time threshold */
! 			if (!is_nonnegative (optarg))
  				usage2 (_("invalid warning threshold"), optarg);
  			else {





More information about the Commits mailing list