Fix forgotten assignment to last
This commit is contained in:
parent
bf55c2d0a9
commit
60e7179766
1 changed files with 2 additions and 0 deletions
|
|
@ -49,6 +49,8 @@ void print_progress(int current, int total) {
|
||||||
if (filled == last)
|
if (filled == last)
|
||||||
return; /* Avoid unnecessary io/flushes */
|
return; /* Avoid unnecessary io/flushes */
|
||||||
|
|
||||||
|
last = filled;
|
||||||
|
|
||||||
printf("\r[");
|
printf("\r[");
|
||||||
for (int i = 0; i < BAR_WIDTH; i++) {
|
for (int i = 0; i < BAR_WIDTH; i++) {
|
||||||
if (i < filled)
|
if (i < filled)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue