From 8f5ffd9589d15c97ab91c494d9b511165f424c93 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Wed, 5 Nov 2008 13:38:50 -0800 Subject: [PATCH] Only print remaining size when > 1k. --- src/ChangeLog | 5 +++++ src/ftp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 79104873..c7a378ea 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-11-05 Micah Cowan + + * ftp.c (print_length): Should print humanized "size remaining" + only when it's at least 1k. + 2008-10-31 Micah Cowan * main.c (print_version): Add information about the mailing list. diff --git a/src/ftp.c b/src/ftp.c index 482651be..9f65cc34 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -216,7 +216,7 @@ print_length (wgint size, wgint start, bool authoritative) logprintf (LOG_VERBOSE, " (%s)", human_readable (size)); if (start > 0) { - if (start >= 1024) + if (size - start >= 1024) logprintf (LOG_VERBOSE, _(", %s (%s) remaining"), number_to_static_string (size - start), human_readable (size - start));