mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Don't calculate the ETA if nothing has yet been downloaded.
This commit is contained in:
parent
f496a0ea07
commit
b83acf88c1
@ -1,3 +1,8 @@
|
|||||||
|
2003-11-27 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* progress.c (create_image): Don't calculate ETA if nothing has
|
||||||
|
been downloaded yet, because it causes division by zero.
|
||||||
|
|
||||||
2003-11-27 Hrvoje Niksic <hniksic@xemacs.org>
|
2003-11-27 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* connect.c (bind_local): Rename sa_len to addrlen because IRIX
|
* connect.c (bind_local): Rename sa_len to addrlen because IRIX
|
||||||
|
@ -850,7 +850,7 @@ create_image (struct bar_progress *bp, double dl_total_time)
|
|||||||
/* " ETA xx:xx:xx"; wait for three seconds before displaying the ETA.
|
/* " ETA xx:xx:xx"; wait for three seconds before displaying the ETA.
|
||||||
That's because the ETA value needs a while to become
|
That's because the ETA value needs a while to become
|
||||||
reliable. */
|
reliable. */
|
||||||
if (bp->total_length > 0 && dl_total_time > 3000)
|
if (bp->total_length > 0 && bp->count > 0 && dl_total_time > 3000)
|
||||||
{
|
{
|
||||||
long eta;
|
long eta;
|
||||||
int eta_hrs, eta_min, eta_sec;
|
int eta_hrs, eta_min, eta_sec;
|
||||||
|
Loading…
Reference in New Issue
Block a user