+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>
* connect.c (bind_local): Rename sa_len to addrlen because IRIX
/* " ETA xx:xx:xx"; wait for three seconds before displaying the ETA.
That's because the ETA value needs a while to become
reliable. */
- if (bp->total_length > 0 && dl_total_time > 3000)
+ if (bp->total_length > 0 && bp->count > 0 && dl_total_time > 3000)
{
long eta;
int eta_hrs, eta_min, eta_sec;