From 38120f75ef01763d693c70e7a365876a5c5f020b Mon Sep 17 00:00:00 2001 From: hniksic Date: Mon, 23 Apr 2001 06:53:29 -0700 Subject: [PATCH] [svn] Write percentages when the length is authoritative. Published in . --- src/ChangeLog | 5 +++++ src/ftp.c | 1 + 2 files changed, 6 insertions(+) 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) { -- 2.39.2