diff options
author | Nicolas Pitre <nico@cam.org> | 2007-10-30 14:57:34 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-10-30 16:08:40 -0700 |
commit | cf84d51c43fa05cce416bfa3f5db3ad70773abdf (patch) | |
tree | 66174c02c7eb0d9cae466960a60467dd1e8fb297 /progress.h | |
parent | 4d4fcc5451d9d653bebcc8afa18543cb426abeed (diff) | |
download | git-cf84d51c43fa05cce416bfa3f5db3ad70773abdf.tar.gz |
add throughput to progress display
This adds the ability for the progress code to also display transfer
throughput when that makes sense.
The math was inspired by commit c548cf4ee0737a321ffe94f6a97c65baf87281be
from Linus.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'progress.h')
-rw-r--r-- | progress.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/progress.h b/progress.h index 4c6d53524b..61cb68dfa5 100644 --- a/progress.h +++ b/progress.h @@ -3,6 +3,7 @@ struct progress; +void display_throughput(struct progress *progress, unsigned long n); int display_progress(struct progress *progress, unsigned n); struct progress *start_progress(const char *title, unsigned total); struct progress *start_progress_delay(const char *title, unsigned total, |