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) | |||
1284 | printf (" %s\n", _("specify a target")); | 1284 | printf (" %s\n", _("specify a target")); |
1285 | printf (" %s\n", "-w"); | 1285 | printf (" %s\n", "-w"); |
1286 | printf (" %s", _("warning threshold (currently ")); | 1286 | printf (" %s", _("warning threshold (currently ")); |
1287 | printf ("%0.3fms,%u%%)\n", (float)warn.rta / 1000 , warn.pl / 1000); | 1287 | printf ("%0.3fms,%u%%)\n", (float)warn.rta / 1000, warn.pl); |
1288 | printf (" %s\n", "-c"); | 1288 | printf (" %s\n", "-c"); |
1289 | printf (" %s", _("critical threshold (currently ")); | 1289 | printf (" %s", _("critical threshold (currently ")); |
1290 | printf ("%0.3fms,%u%%)\n", (float)crit.rta, crit.pl); | 1290 | printf ("%0.3fms,%u%%)\n", (float)crit.rta / 1000, crit.pl); |
1291 | printf (" %s\n", "-s"); | 1291 | printf (" %s\n", "-s"); |
1292 | printf (" %s\n", _("specify a source IP address or device name")); | 1292 | printf (" %s\n", _("specify a source IP address or device name")); |
1293 | printf (" %s\n", "-n"); | 1293 | printf (" %s\n", "-n"); |