diff options
author | Matthias Eble <psychotrahe@gmx.de> | 2009-06-01 22:21:59 +0200 |
---|---|---|
committer | Matthias Eble <psychotrahe@gmx.de> | 2009-06-01 22:21:59 +0200 |
commit | 1c55e7287a4b1441958236956d20a2d908b3d8c3 (patch) | |
tree | d5df984fff03568e5a34d7ae7895e2e8db21b964 /plugins-root/check_icmp.c | |
parent | 28e1b836b1b06a2a6c664e96ffe96213a96f8ddd (diff) | |
download | monitoring-plugins-1c55e7287a4b1441958236956d20a2d908b3d8c3.tar.gz |
Fixed --help output for warn and critical thresholds (sf.net #2796624, debian #530553)
check_icmp wrongly calculated the current thresholds in --help output.
Diffstat (limited to 'plugins-root/check_icmp.c')
-rw-r--r-- | plugins-root/check_icmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index bbdfae75..4da6ea16 100644 --- a/plugins-root/check_icmp.c +++ b/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"); |