Просмотр исходного кода

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

check_icmp wrongly calculated the current thresholds in --help output.
Matthias Eble 16 лет назад
Родитель
Сommit
1c55e7287a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      plugins-root/check_icmp.c

+ 2 - 2
plugins-root/check_icmp.c

@@ -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");