]> Zhao Yanbai Git Server - minix.git/commitdiff
Patch by Jaswinder Singh Rajput to fix FTP progress display
authorErik van der Kouwe <erik@minix3.org>
Tue, 17 Nov 2009 08:41:43 +0000 (08:41 +0000)
committerErik van der Kouwe <erik@minix3.org>
Tue, 17 Nov 2009 08:41:43 +0000 (08:41 +0000)
commands/ftp/file.c

index beee1959d954f17f02423ec79c8a8d592dad8f69..8fdb3e2b7d154891f01f11c76b9e12e627515953 100644 (file)
@@ -183,7 +183,7 @@ unsigned long total=0L;
                }
        }
        if(atty && fd > 2) {
-               printf("%9lu bytes\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b", total);
+               printf("%11lu bytes\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b", total);
                fflush(stdout);
        }
    }
@@ -213,7 +213,7 @@ unsigned long total=0L;
        write(fd, buffer, s);
        total += (long)s;
        if(atty && fd > 2) {
-               printf("%9lu bytes\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b", total);
+               printf("%11lu bytes\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b", total);
                fflush(stdout);
        }
    }