[Nagiosplug-checkins] SF.net SVN: nagiosplug:[2207] nagiosplug/trunk/plugins-root/check_icmp.c

dermoth at users.sourceforge.net dermoth at users.sourceforge.net
Sat Jun 6 07:55:45 CEST 2009


Revision: 2207
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2207&view=rev
Author:   dermoth
Date:     2009-06-06 05:55:44 +0000 (Sat, 06 Jun 2009)

Log Message:
-----------
Fixed --help output for warn and critical thresholds (sf.net #2796624, debian #530553)

check_icmp wrongly calculated the current thresholds in --help output.

From: Matthias Eble <psychotrahe at gmx.de>

Modified Paths:
--------------
    nagiosplug/trunk/plugins-root/check_icmp.c

Modified: nagiosplug/trunk/plugins-root/check_icmp.c
===================================================================
--- nagiosplug/trunk/plugins-root/check_icmp.c	2009-06-05 17:01:21 UTC (rev 2206)
+++ nagiosplug/trunk/plugins-root/check_icmp.c	2009-06-06 05:55:44 UTC (rev 2207)
@@ -1284,10 +1284,10 @@
   printf ("    %s\n", _("specify a target"));
   printf (" %s\n", "-w");
   printf ("    %s", _("warning threshold (currently "));
-  printf ("%0.3fms,%u%%)\n", (float)warn.rta / 1000 , warn.pl / 1000);
+  printf ("%0.3fms,%u%%)\n", (float)warn.rta / 1000, warn.pl);
   printf (" %s\n", "-c");
   printf ("    %s", _("critical threshold (currently "));
-  printf ("%0.3fms,%u%%)\n", (float)crit.rta, crit.pl);
+  printf ("%0.3fms,%u%%)\n", (float)crit.rta / 1000, crit.pl);
   printf (" %s\n", "-s");
   printf ("    %s\n", _("specify a source IP address or device name"));
   printf (" %s\n", "-n");


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list