author | Nicolas Pitre <nico@cam.org> | |
Mon, 5 Nov 2007 03:15:41 +0000 (22:15 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 5 Nov 2007 20:53:14 +0000 (12:53 -0800) | ||
commit | 218558af599c01e5dec17a7399d9188a76c50203 | |
tree | 4cbbbc442f76653aec103c4e7c1d62763fe5e5e2 | tree | snapshot |
parent | 0d8aafd25271c8d1cf185019437e21362edc1bc7 | commit | diff |
make display of total transferred more accurate
The throughput display needs a delay period before accounting and
displaying anything. Yet it might be called after some amount of data
has already been transferred. The display of total data is therefore
accounted late and therefore smaller than the reality.
Let's call display_throughput() with an absolute amount of transferred
data instead of a relative number, and let the throughput code find the
relative amount of data by itself as needed. This way the displayed
total is always exact.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The throughput display needs a delay period before accounting and
displaying anything. Yet it might be called after some amount of data
has already been transferred. The display of total data is therefore
accounted late and therefore smaller than the reality.
Let's call display_throughput() with an absolute amount of transferred
data instead of a relative number, and let the throughput code find the
relative amount of data by itself as needed. This way the displayed
total is always exact.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
csum-file.c | diff | blob | history | |
csum-file.h | diff | blob | history | |
index-pack.c | diff | blob | history | |
progress.c | diff | blob | history | |
progress.h | diff | blob | history |