]> sjero.net Git - wget/commitdiff
[svn] Write percentages when the length is authoritative.
authorhniksic <devnull@localhost>
Mon, 23 Apr 2001 13:53:29 +0000 (06:53 -0700)
committerhniksic <devnull@localhost>
Mon, 23 Apr 2001 13:53:29 +0000 (06:53 -0700)
Published in <sxselujd8py.fsf@florida.arsdigita.de>.

src/ChangeLog
src/ftp.c

index 1c078666e4af2d2ef9367bce7832bea6f0701f99..082e3557b6ebf0fbc792954cb09841c51a397cfe 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-21  Hrvoje Niksic  <hniksic@arsdigita.com>
+
+       * ftp.c (getftp): Adjust expected_bytes if the length is
+       authoritative.
+
 2001-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * url.c: Don't declare `construct'.
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)
     {