summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 28e1b83)
raw | patch | inline | side by side (parent: 28e1b83)
author | Matthias Eble <psychotrahe@gmx.de> | |
Mon, 1 Jun 2009 20:21:59 +0000 (22:21 +0200) | ||
committer | Matthias 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 | patch | blob | history |
index bbdfae75a1c81cb44a6a29a53566370252d1963d..4da6ea166cecb98859f42f923f7a9ea0f5bea22b 100644 (file)
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");