Obviously, that's another possibility.
Also (with either one) would be nice something like
--random-wait=20% 
wait from 80..120% of the wait time, calculated after all the
commandline and wgetrc and system wgetrc have been evaluated.

Would be nice, dump random-wait = 50% in the wgetrc and all your
existing scripts will benefit IF they use wait, whatever delay (!= 0)
they were using before.
Now let's return to our scheduld "ask for a random feature" :)

Heiko

-- 
-- PREVINET S.p.A.            [EMAIL PROTECTED]
-- Via Ferretto, 1            ph  x39-041-5907073
-- I-31021 Mogliano V.to (TV) fax x39-041-5907087
-- ITALY



>-----Original Message-----
>From: Vladi Belperchinov-Shabanski [mailto:[EMAIL PROTECTED]]
>Sent: Monday, November 26, 2001 12:38 PM
>To: Herold Heiko
>Cc: List wget-bug (E-mail)
>Subject: Re: --random-wait
>
>
>hi!
>
>  
>  --random-wait=20         between 0 and 20 secs.
>  --random-wait=20..30     between 20 and 30 (closed-closed) :)))
>  
>  or of cource:
>
>  --random-wait=20-30
>
>P! Vladi.
>
>
>
>Herold Heiko wrote:
>> 
>> I couldn't test that option yet,
>> 
>> but it seems to use 0 .. 2*opt.wait for it's random waiting.
>> 
>> What if somebody wants to wait a longer time with different random
>> intervall... say wait from 20..30 seconds ?
>> Possibly it would be better giving random-wait a numeric 
>option, and use
>> something like
>> 
>> --wait=25 --random-wait=10
>> 
>> waitsecs = opt.wait \
>>           + ( random() % (opt.randomwait + 1) ) \
>>           - opt.randomwait / 2  ;
>> if ( waitsecs > 0 )
>>   waitsecs = 0;
>> 
>> Heiko
>> 
>> --
>> -- PREVINET S.p.A.            [EMAIL PROTECTED]
>> -- Via Ferretto, 1            ph  x39-041-5907073
>> -- I-31021 Mogliano V.to (TV) fax x39-041-5907087
>> -- ITALY
>
>-- 
>Vladi Belperchinov-Shabanski <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
>Personal home page at http://www.biscom.net/~cade
>DataMax Ltd. http://www.datamax.bg
>Too many hopes and dreams won't see the light...
>

Reply via email to