printf-utils: Add newline when 100%
This commit is contained in:
1 parent
ab07fec919
commit
17c6aefdcb
1 file changed
+1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user