1diff -Nur wget-1.13.4.org//src/progress.c wget-1.13.4/src/progress.c 2--- wget-1.13.4.org//src/progress.c 2015-11-05 09:12:57.558246759 -0500 3+++ wget-1.13.4/src/progress.c 2015-11-05 09:14:02.448246745 -0500 4@@ -885,6 +885,7 @@ 5 */ 6 int dlbytes_size = 1 + MAX (size_grouped_len, 11); 7 int progress_size = bp->width - (4 + 2 + dlbytes_size + 8 + 14); 8+ int dl_per = 0; 9 10 /* The difference between the number of bytes used, 11 and the number of columns used. */ 12@@ -897,6 +898,7 @@ 13 if (bp->total_length > 0) 14 { 15 int percentage = 100.0 * size / bp->total_length; 16+ dl_per = percentage; 17 assert (percentage <= 100); 18 19 if (percentage < 100) 20@@ -992,6 +994,7 @@ 21 wgint dlquant = hist->total_bytes + bp->recent_bytes; 22 double dltime = hist->total_time + (dl_total_time - bp->recent_start); 23 double dlspeed = calc_rate (dlquant, dltime, &units); 24+ print_stat("(DOWNLOADING %s %4.*f%s %d%%)",number_to_static_string(bp->total_length), dlspeed >= 99.95 ? 0 : dlspeed >= 9.995 ? 1 : 2, dlspeed, short_units[units],dl_per); 25 sprintf (p, " %4.*f%s", dlspeed >= 99.95 ? 0 : dlspeed >= 9.995 ? 1 : 2, 26 dlspeed, short_units[units]); 27 move_to_end (p); 28