Code

Fixed --help output for warn and critical thresholds (sf.net #2796624, debian #530553)
authorMatthias Eble <psychotrahe@gmx.de>
Mon, 1 Jun 2009 20:21:59 +0000 (22:21 +0200)
committerMatthias Eble <psychotrahe@gmx.de>
Mon, 1 Jun 2009 20:21:59 +0000 (22:21 +0200)
check_icmp wrongly calculated the current thresholds in --help output.

plugins-root/check_icmp.c

index bbdfae75a1c81cb44a6a29a53566370252d1963d..4da6ea166cecb98859f42f923f7a9ea0f5bea22b 100644 (file)
@@ -1284,10 +1284,10 @@ print_help(void)
   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");