[svn] Write percentages when the length is authoritative.

Published in <sxselujd8py.fsf@florida.arsdigita.de>.
This commit is contained in:
hniksic 2001-04-23 06:53:29 -07:00
parent ac7c8c1390
commit 38120f75ef
2 changed files with 6 additions and 0 deletions

View 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'.

View File

@ -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)
{