From 3a7371694ce3319a3d9e64a4cf960dc14536bed6 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Sat, 11 Jun 2022 16:14:11 -0400 Subject: progress: fewer updates about throughput Avoid too much flashing on the console with updates about throughput. Only update throughput once a second. --- src/cli/progress.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cli/progress.h') diff --git a/src/cli/progress.h b/src/cli/progress.h index fab2e97a2..7a445ec29 100644 --- a/src/cli/progress.h +++ b/src/cli/progress.h @@ -40,6 +40,10 @@ typedef struct { git_str sideband; git_str onscreen; git_str deferred; + + /* Last update about throughput */ + double throughput_update; + double throughput_bytes; } cli_progress; #define CLI_PROGRESS_INIT { 0 } -- cgit v1.2.1