]> sjero.net Git - wget/commitdiff
Only print remaining size when > 1k.
authorMicah Cowan <micah@cowan.name>
Wed, 5 Nov 2008 21:38:50 +0000 (13:38 -0800)
committerMicah Cowan <micah@cowan.name>
Wed, 5 Nov 2008 21:38:50 +0000 (13:38 -0800)
src/ChangeLog
src/ftp.c

index 791048738cc5a1b5d4a65ca43fadbdb9d08baa3e..c7a378eae1d331248c50443e98030a310daff6f0 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-05  Micah Cowan  <micah@cowan.name>
+
+       * ftp.c (print_length): Should print humanized "size remaining"
+       only when it's at least 1k.
+
 2008-10-31  Micah Cowan  <micah@cowan.name>
 
        * main.c (print_version): Add information about the mailing list.
index 482651be62cd769f94ab404d25fc69297a0cc03f..9f65cc340332957fed6968a2c7fd07b85a14fec5 100644 (file)
--- 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));