From 1c55e7287a4b1441958236956d20a2d908b3d8c3 Mon Sep 17 00:00:00 2001 From: Matthias Eble Date: Mon, 1 Jun 2009 22:21:59 +0200 Subject: Fixed --help output for warn and critical thresholds (sf.net #2796624, debian #530553) check_icmp wrongly calculated the current thresholds in --help output. --- plugins-root/check_icmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins-root/check_icmp.c') 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"); -- cgit v1.2.3