X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fprogress.c;h=27501c6739b044fea6187ba185c606a3e2321e86;hp=f7cbc009f0b5b6b0f43bb74f6e2af7b9f43d9d44;hb=40f4de9ae9d4e6527b6e04c76f3a309cc94325a6;hpb=e289d2ecc402d2c904421f5951b3fb042a1d7fb3 diff --git a/src/progress.c b/src/progress.c index f7cbc009..27501c67 100644 --- a/src/progress.c +++ b/src/progress.c @@ -301,8 +301,8 @@ print_row_stats (struct dot_progress *dp, double dltime, bool last) else /* For last row also include bytes accumulated after last dot. */ bytes_this_row = dp->dots * opt.dot_bytes + dp->accumulated; + /* Don't count the portion of the row belonging to initial_length */ if (dp->rows == dp->initial_length / ROW_BYTES) - /* Don't count the portion of the row belonging to initial_length */ bytes_this_row -= dp->initial_length % ROW_BYTES; rate = calc_rate (bytes_this_row, dltime - dp->last_timer_value, &units); logprintf (LOG_VERBOSE, " %4.*f%c", @@ -313,6 +313,8 @@ print_row_stats (struct dot_progress *dp, double dltime, bool last) if (!last) { + /* Display ETA based on average speed. Inspired by Vladi + Belperchinov-Shabanski's "wget-new-percentage" patch. */ if (dp->total_length) { wgint bytes_remaining = dp->total_length - bytes_displayed;