1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Time-measurement fix

This commit is contained in:
Paul Townsend 2010-01-27 10:08:26 -08:00
parent 30b24240ae
commit 068991e8a0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-01-27 Paul Townsend <aab@purdue.edu> (tiny change)
* retr.c (fd_read_body): Be sure to measure timer when time has
elapsed, too, not just when we've made progress.
2010-01-13 Micah Cowan <micah@cowan.name>
* openssl.c: Fixed some mixed declarations-and-code.

View File

@ -301,7 +301,7 @@ fd_read_body (int fd, FILE *out, wgint toread, wgint startpos,
else if (ret <= 0)
break; /* EOF or read error */
if (progress || opt.limit_rate)
if (progress || opt.limit_rate || elapsed)
{
ptimer_measure (timer);
if (ret > 0)