progress bar fix

This commit is contained in:
2019-10-26 14:39:28 -04:00
parent c3b7a05dde
commit bfc7f4ddb6
6 changed files with 19 additions and 29 deletions

View File

@@ -34,7 +34,7 @@ char *expandpath(const char *path) {
void progress_bar_print(double percentage, size_t tn_size, size_t index_size) {
static int last_val = 0;
static int last_val = -1;
int val = (int) (percentage * 100);
if (last_val == val || val > 100 || index_size < 1024) {
return;