Report the total avg transfer speed correctly with multiple URL's and -c.

This commit is contained in:
Muthu Subramanian K 2010-06-11 00:35:30 +02:00 committed by Giuseppe Scrivano
parent e16bd20474
commit aca9f566b6
3 changed files with 10 additions and 2 deletions

3
NEWS
View File

@ -26,6 +26,9 @@ Please send GNU Wget bug reports to <bug-wget@gnu.org>.
** 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

View File

@ -1,3 +1,8 @@
2010-06-10 Muthu Subramanian K <muthusuba@gmail.com> (tiny change)
* http.c (http_loop): Increase `total_downloaded_bytes' by
`hstat.rd_size', not `hstat.len'.
2010-06-10 Giuseppe Scrivano <gscrivano@gnu.org>
* main.c (print_version): Drop the current maintainer line.

View File

@ -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)