diff --git a/NEWS b/NEWS index d0026378..992e3ab7 100644 --- a/NEWS +++ b/NEWS @@ -26,6 +26,9 @@ Please send GNU Wget bug reports to . ** Do not use an additional HEAD request when --content-disposition is used, but use directly GET. + +** Report the average transfer speed correctly when multiple URL's are specified + and -c influences the transferred data amount. * Changes in Wget 1.12 diff --git a/src/ChangeLog b/src/ChangeLog index 4a356d63..c1a1a894 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-06-10 Muthu Subramanian K (tiny change) + + * http.c (http_loop): Increase `total_downloaded_bytes' by + `hstat.rd_size', not `hstat.len'. + 2010-06-10 Giuseppe Scrivano * main.c (print_version): Drop the current maintainer line. diff --git a/src/http.c b/src/http.c index 577781cc..c3ec2e0d 100644 --- a/src/http.c +++ b/src/http.c @@ -3029,7 +3029,7 @@ Remote file exists.\n\n")); hstat.local_file, count); } ++numurls; - total_downloaded_bytes += hstat.len; + total_downloaded_bytes += hstat.rd_size; /* Remember that we downloaded the file for later ".orig" code. */ if (*dt & ADDED_HTML_EXTENSION) @@ -3062,7 +3062,7 @@ Remote file exists.\n\n")); hstat.local_file, count); } ++numurls; - total_downloaded_bytes += hstat.len; + total_downloaded_bytes += hstat.rd_size; /* Remember that we downloaded the file for later ".orig" code. */ if (*dt & ADDED_HTML_EXTENSION)