From: Erik van der Kouwe Date: Tue, 17 Nov 2009 08:41:43 +0000 (+0000) Subject: Patch by Jaswinder Singh Rajput to fix FTP progress display X-Git-Tag: v3.1.6~197 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.named-checkzone.html?a=commitdiff_plain;h=c85bd7edb92e116968f4841ed792f6c29837575c;p=minix.git Patch by Jaswinder Singh Rajput to fix FTP progress display --- diff --git a/commands/ftp/file.c b/commands/ftp/file.c index beee1959d..8fdb3e2b7 100644 --- a/commands/ftp/file.c +++ b/commands/ftp/file.c @@ -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); } }