Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
make sure throughput display gets updated even if progress doesn't move
[gitweb.git]
/
progress.c
diff --git
a/progress.c
b/progress.c
index 34a59611fbb4c94bd0bd39d95a24cbd3280a6da0..39d5d2c9f26e7da88846cecdc13cb440832508ca 100644
(file)
--- a/
progress.c
+++ b/
progress.c
@@
-160,6
+160,9
@@
void display_throughput(struct progress *progress, unsigned long n)
tp->last_misecs[tp->idx] = misecs;
tp->idx = (tp->idx + 1) % TP_IDX_MAX;
tp->count = 0;
+
+ if (progress->last_value != -1 && progress_update)
+ display(progress, progress->last_value, 0);
}
}