diff options
Diffstat (limited to 'src/printf-utils.c')
-rw-r--r-- | src/printf-utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/printf-utils.c b/src/printf-utils.c index 3ea0135..9e2f99d 100644 --- a/src/printf-utils.c +++ b/src/printf-utils.c @@ -55,6 +55,7 @@ void printf_progressbar(unsigned long long part, unsigned long long total) { for(tmp=cols*pc/100;tmp;tmp--) PRINTF_ADD("#"); for(tmp=cols-(cols*pc/100);tmp;tmp--) PRINTF_ADD("-"); PRINTF_ADD("]"); + if (part == total) PRINTF_END(); fflush(stdout); #if HAVE_SQUEUE } |