From: Florian Forster Date: Thu, 12 Mar 2009 07:38:21 +0000 (+0100) Subject: src/oping.c: Allow shorter interval settings. X-Git-Tag: liboping-1.1.0~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a9899b23c6417b67dc034615ebd815bee0651da1;p=liboping.git src/oping.c: Allow shorter interval settings. Previously, only 1/5s was allowed. Now everything down to 1/1000s is accepted. --- diff --git a/src/oping.c b/src/oping.c index 4100caf..cfbe18a 100644 --- a/src/oping.c +++ b/src/oping.c @@ -143,7 +143,10 @@ static int read_options (int argc, char **argv) { double new_interval; new_interval = atof (optarg); - if (new_interval >= 0.2) + if (new_interval < 0.001) + fprintf (stderr, "Ignoring invalid interval %g.\n", + new_interval); + else opt_interval = new_interval; } break;