[Nagiosplug-checkins] CVS: nagiosplug/plugins check_swap.c,1.23,1.24

Karl DeBisschop kdebisschop at users.sourceforge.net
Tue Nov 11 21:38:25 CET 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv28933

Modified Files:
	check_swap.c 
Log Message:
clean up compiler warnings

Index: check_swap.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_swap.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** check_swap.c	11 Nov 2003 10:27:16 -0000	1.23
--- check_swap.c	12 Nov 2003 05:37:19 -0000	1.24
***************
*** 225,235 ****
  						(100 - percent_used), free_swap, total_swap, status);
  
! 	asprintf (&perf, "%s", perfdata ("swap", free_swap, "MB",
! 		TRUE, max (warn_size/1024, warn_percent/100.0*total_swap),
! 		TRUE, max (crit_size/1024, crit_percent/100.0*total_swap),
  		TRUE, 0,
! 		TRUE, total_swap));
! 	die (result, "SWAP %s:%s |%s\n", state_text (result), status, perf);
! 	return STATE_UNKNOWN;
  }
  
--- 225,235 ----
  						(100 - percent_used), free_swap, total_swap, status);
  
! 	asprintf (&perf, "%s", perfdata ("swap", (long) free_swap, "MB",
! 		TRUE, (long) max (warn_size/1024, warn_percent/100.0*total_swap),
! 		TRUE, (long) max (crit_size/1024, crit_percent/100.0*total_swap),
  		TRUE, 0,
! 		TRUE, (long) total_swap));
! 	printf ("SWAP %s:%s |%s\n", state_text (result), status, perf);
! 	return result;
  }
  





More information about the Commits mailing list