Hartwig, Thomas wrote:
> I got a assert exit of wget in "retr.c" in the function "calc_rate"
> because "msecs" is 0 or lesser than 0 (in spare cases).
> I don't know how perhaps because I have a big line to the server or
> the wrong OS. To get worked with this I patched "retr.c" setting
> "msecs = 1" if equal or below zero.
>
> Some informations are added below, what else do you need?
>
> #: cat /proc/version
> Linux version 2.4.18 (root@netbrain) (gcc version 2.96 20000731 (Red
> Hat Linux 7.3 2.96-110)) #4 Sun Jul 28 09:01:06 CEST 2002

I have run across this problem too. It is because with Linux 2.4.18 (and other
versions??) in certain circumstances, gettimeofday() is broken and will jump
backwards. See http://kt.zork.net/kernel-traffic/kt20020708_174.html#1.

Is there any particular reason for this assert? If there is, maybe:
if (msecs < 0) msecs = 0;
would be more suitable.

Max.

Reply via email to