[Nagiosplug-checkins] CVS: nagiosplug/plugins check_mrtgtraf.c,1.10,1.11

Karl DeBisschop kdebisschop at users.sourceforge.net
Tue Nov 11 21:42:09 CET 2003


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

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

Index: check_mrtgtraf.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_mrtgtraf.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** check_mrtgtraf.c	12 Nov 2003 05:29:55 -0000	1.10
--- check_mrtgtraf.c	12 Nov 2003 05:41:28 -0000	1.11
***************
*** 176,191 ****
  	}
  
! 	asprintf (&error_message, _("%s. In = %0.1f %s, %s. Out = %0.1f %s\n"),
  	          (use_average == TRUE) ? _("Avg") : _("Max"), adjusted_incoming_rate,
  	          incoming_speed_rating, (use_average == TRUE) ? _("Avg") : _("Max"),
  	          adjusted_outgoing_rate, outgoing_speed_rating,
! 	          perfdata("in", adjusted_incoming_rate, incoming_speed_rating,
! 	                   incoming_warning_threshold, incoming_warning_threshold,
! 	                   incoming_critical_threshold, incoming_critical_threshold,
! 	                   TRUE, 0, TRUE, incoming_speed_rating),
! 	          perfdata("in", adjusted_outgoing_rate, outgoing_speed_rating,
! 	                   outgoing_warning_threshold, outgoing_warning_threshold,
! 	                   outgoing_critical_threshold, outgoing_critical_threshold,
! 	                   TRUE, 0, TRUE, outgoing_speed_rating));
  
  	printf (_("Traffic %s - %s\n"), state_text(result), error_message);
--- 176,191 ----
  	}
  
! 	asprintf (&error_message, _("%s. In = %0.1f %s, %s. Out = %0.1f %s|%s %s\n"),
  	          (use_average == TRUE) ? _("Avg") : _("Max"), adjusted_incoming_rate,
  	          incoming_speed_rating, (use_average == TRUE) ? _("Avg") : _("Max"),
  	          adjusted_outgoing_rate, outgoing_speed_rating,
! 	          perfdata("in", (long) adjusted_incoming_rate, incoming_speed_rating,
! 	                   (int) incoming_warning_threshold, (long) incoming_warning_threshold,
! 	                   (int) incoming_critical_threshold, (long) incoming_critical_threshold,
! 	                   TRUE, 0, TRUE, (long) incoming_speed_rating),
! 	          perfdata("in", (long) adjusted_outgoing_rate, outgoing_speed_rating,
! 	                   (int) outgoing_warning_threshold, (long) outgoing_warning_threshold,
! 	                   (int) outgoing_critical_threshold, (long) outgoing_critical_threshold,
! 	                   TRUE, 0, TRUE, (long) outgoing_speed_rating));
  
  	printf (_("Traffic %s - %s\n"), state_text(result), error_message);





More information about the Commits mailing list