]> sjero.net Git - wget/blobdiff - src/http.c
Report the total avg transfer speed correctly with multiple URL's and -c.
[wget] / src / http.c
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)