From c85bd7edb92e116968f4841ed792f6c29837575c Mon Sep 17 00:00:00 2001 From: Erik van der Kouwe Date: Tue, 17 Nov 2009 08:41:43 +0000 Subject: [PATCH] Patch by Jaswinder Singh Rajput to fix FTP progress display --- commands/ftp/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.44.0