]> sjero.net Git - wget/commitdiff
Report the total avg transfer speed correctly with multiple URL's and -c.
authorMuthu Subramanian K <muthusuba@gmail.com>
Thu, 10 Jun 2010 22:35:30 +0000 (00:35 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Thu, 10 Jun 2010 22:35:30 +0000 (00:35 +0200)
NEWS
src/ChangeLog
src/http.c

diff --git a/NEWS b/NEWS
index d0026378b7b10a0db6f884a6dec408ef00d7ffed..992e3ab74484dc6005cac777390afccf361c7e02 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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.
 \f
 * Changes in Wget 1.12
 
index 4a356d6315eddadeba67c9728f4e94508cdcbe3d..c1a1a894ae1e280a38da7a98bed1c888b51be823 100644 (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.
index 577781cc139b99d003a7812aca19d58550224d10..c3ec2e0d976a3d1d023002ea28560701013d9e53 100644 (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)