]> sjero.net Git - wget/blobdiff - src/ftp.c
[svn] Write percentages when the length is authoritative.
[wget] / src / ftp.c
index bf50ab326b9a1fb5c5d5409323b7ed7b4a0305e0..9a0f9a3fa3b2d00d5ad99f8e89e512b1a7c094e8 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -860,6 +860,7 @@ Error in server response, closing control connection.\n"));
       if (restval)
        logprintf (LOG_VERBOSE, _(" [%s to go]"), legible (*len - restval));
       logputs (LOG_VERBOSE, "\n");
+      expected_bytes = *len;   /* for get_contents/show_progress */
     }
   else if (expected_bytes)
     {