printf-utils: Add newline when 100%

This commit is contained in:
Pali Rohár committed 2012-08-11 21:20:14 +02:00
1 parent ab07fec919
commit 17c6aefdcb
1 file changed
+1
+1
View File
@@ -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
}