summaryrefslogtreecommitdiffstats
path: root/plugins-root
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@gmx.de>2009-06-01 20:21:59 (GMT)
committerMatthias Eble <psychotrahe@gmx.de>2009-06-01 20:21:59 (GMT)
commit1c55e7287a4b1441958236956d20a2d908b3d8c3 (patch)
treed5df984fff03568e5a34d7ae7895e2e8db21b964 /plugins-root
parent28e1b836b1b06a2a6c664e96ffe96213a96f8ddd (diff)
downloadmonitoring-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')
-rw-r--r--plugins-root/check_icmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index bbdfae7..4da6ea1 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");