Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-10-30 21:57:34 +0300
committerJunio C Hamano <gitster@pobox.com>2007-10-31 02:08:40 +0300
commitcf84d51c43fa05cce416bfa3f5db3ad70773abdf (patch)
tree66174c02c7eb0d9cae466960a60467dd1e8fb297 /progress.h
parent4d4fcc5451d9d653bebcc8afa18543cb426abeed (diff)
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.h1
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,