diff options
author | René Scharfe <l.s.r@web.de> | 2017-07-08 18:43:42 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-09 09:54:20 -0700 |
commit | 0fae1e072a925b76f35666c9bcd965ea5e3e5574 (patch) | |
tree | 16d03a933c8e27a9c41a5d9269056735d15555f5 /t/t5500-fetch-pack.sh | |
parent | Git 2.13.2 (diff) | |
download | tgif-0fae1e072a925b76f35666c9bcd965ea5e3e5574.tar.xz |
progress: show overall rate in last update
The values in struct throughput are only updated every 0.5 seconds. If
we're all done before that time span then the final update will show a
rate of 0 bytes/s, which is misleading if some bytes had been handled.
Remember the start time and show the total throughput instead.
And avoid division by zero by enforcing a minimum time span value of 1
(unit: 1/1024th of a second). That makes the resulting rate an
underestimation, but it's closer to the actual value than the currently
shown 0 bytes/s.
Reported-by: 積丹尼 Dan Jacobson <jidanni@jidanni.org>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5500-fetch-pack.sh')
0 files changed, 0 insertions, 0 deletions