From aa9056b461332d75a4c00b368b41edfce0837dfd Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 22 Feb 2011 20:39:13 +1100 Subject: [PATCH] Minor output fix to prevent %% showing when one thread changes from 100% to be replaced with 10%. --- zpipe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zpipe.cpp b/zpipe.cpp index 4facd6e..62fbc31 100644 --- a/zpipe.cpp +++ b/zpipe.cpp @@ -1605,7 +1605,7 @@ static void decompress(FILE *in, FILE *out, FILE *msgout, long long int buf_len, fprintf(msgout, "\r\t\t\t\tZPAQ\t"); for (i = 0; i < thread; i++) fprintf(msgout, "\t"); - fprintf(msgout, "%ld: %i%%\r", + fprintf(msgout, "%ld: %i%% \r", thread + 1, pct); fflush(msgout); last_pct = pct; @@ -1742,7 +1742,7 @@ static void compress(FILE *in, FILE *out, FILE *msgout, long long int buf_len, fprintf(msgout, "\r\t\t\t\tZPAQ\t"); for (i = 0; i < thread; i++) fprintf(msgout, "\t"); - fprintf(msgout, "%ld: %i%%\r", + fprintf(msgout, "%ld: %i%% \r", thread + 1, pct); fflush(msgout); last_pct = pct;