Commit 3e935d19 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Junio C Hamano

make sure throughput display gets updated even if progress doesn't move

Currently the progress/throughput display update happens only through
display_progress().  If the progress based on object count remains
unchanged because a large object is being received, the latest throughput
won't be displayed.  The display update should occur through
display_throughput() as well.
Signed-off-by: default avatarNicolas Pitre <>
Signed-off-by: default avatarJunio C Hamano <>
parent 93ff3f6a
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment