[Nagiosplug-checkins] CVS: nagiosplug/plugins check_disk.c,1.42,1.43

Ton Voon tonvoon at users.sourceforge.net
Wed Aug 18 13:23:01 CEST 2004


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

Modified Files:
	check_disk.c 
Log Message:
Fixed perfdata so that shows amount used (Garry Cook)


Index: check_disk.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_disk.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** check_disk.c	18 Mar 2004 20:50:13 -0000	1.42
--- check_disk.c	18 Aug 2004 20:21:59 -0000	1.43
***************
*** 192,196 ****
  			asprintf (&perf, "%s %s", perf,
  			          perfdata ((!strcmp(file_system, "none") || display_mntp) ? me->me_devname : me->me_mountdir,
! 			                    fsp.fsu_bavail*fsp.fsu_blocksize/mult, units,
  			                    TRUE, min ((uintmax_t)psize-(uintmax_t)w_df, (uintmax_t)((1.0-w_dfp/100.0)*psize)),
  			                    TRUE, min ((uintmax_t)psize-(uintmax_t)c_df, (uintmax_t)((1.0-c_dfp/100.0)*psize)),
--- 192,196 ----
  			asprintf (&perf, "%s %s", perf,
  			          perfdata ((!strcmp(file_system, "none") || display_mntp) ? me->me_devname : me->me_mountdir,
! 			                    psize-(fsp.fsu_bavail*fsp.fsu_blocksize/mult), units,
  			                    TRUE, min ((uintmax_t)psize-(uintmax_t)w_df, (uintmax_t)((1.0-w_dfp/100.0)*psize)),
  			                    TRUE, min ((uintmax_t)psize-(uintmax_t)c_df, (uintmax_t)((1.0-c_dfp/100.0)*psize)),





More information about the Commits mailing list