Taking a peek inside the wget 1.9.1 source reveals the following
construction used a number of times in src/retr.c:
usleep(100L * opt.wait);
There are a couple of problems with this approach. First, we have from
the NetBSD man-page of usleep(3):
The microseconds argument must be less
Quoting Hrvoje Niksic ([EMAIL PROTECTED]):
> Thanks for pointing this out -- I had no idea that some systems don't
> allow usleep to sleep for more than a second. Why do they do that?
I do not know. It conforms to XPG4.2, So I expect the limit to be on
other operating systems too.
> The latest
Quoting Hrvoje Niksic ([EMAIL PROTECTED]):
[...]
Thanks, I'll try to backfeed the information into the PR today, so more
people can look at it.
--
j.