mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Time-measurement fix
This commit is contained in:
parent
30b24240ae
commit
068991e8a0
@ -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>
|
2010-01-13 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* openssl.c: Fixed some mixed declarations-and-code.
|
* openssl.c: Fixed some mixed declarations-and-code.
|
||||||
|
@ -301,7 +301,7 @@ fd_read_body (int fd, FILE *out, wgint toread, wgint startpos,
|
|||||||
else if (ret <= 0)
|
else if (ret <= 0)
|
||||||
break; /* EOF or read error */
|
break; /* EOF or read error */
|
||||||
|
|
||||||
if (progress || opt.limit_rate)
|
if (progress || opt.limit_rate || elapsed)
|
||||||
{
|
{
|
||||||
ptimer_measure (timer);
|
ptimer_measure (timer);
|
||||||
if (ret > 0)
|
if (ret > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user