From: hniksic Date: Mon, 23 Apr 2001 13:53:29 +0000 (-0700) Subject: [svn] Write percentages when the length is authoritative. X-Git-Tag: v1.13~2180 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=38120f75ef01763d693c70e7a365876a5c5f020b [svn] Write percentages when the length is authoritative. Published in . --- diff --git a/src/ChangeLog b/src/ChangeLog index 1c078666..082e3557 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-04-21 Hrvoje Niksic + + * ftp.c (getftp): Adjust expected_bytes if the length is + authoritative. + 2001-04-14 Hrvoje Niksic * url.c: Don't declare `construct'. diff --git a/src/ftp.c b/src/ftp.c index bf50ab32..9a0f9a3f 100644 --- 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) {