git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/2] add throughput to progress display

From
Nicolas Pitre <nico@cam.org>
Date
Oct 30, 2007, 13:43 UTC
Message-ID
<alpine.LFD.0.9999.0710300935330.21255@xanadu.home>
In-Reply-To
<7vr6jdm2eb.fsf@gitster.siamese.dyndns.org>
On Tue, 30 Oct 2007, Junio C Hamano wrote:
> Very nice.
> 
> I however wonder why this breaks t1004 when applied on top of
> lt/rename topic.
Well... sh*t happens.
Could you please simply amend [PATCH 1/2] with the patch below:
diff --git a/progress.c b/progress.c
index d2460dd..a388e54 100644
--- a/progress.c
+++ b/progress.c
@@ -143,6 +143,7 @@ void start_progress_delay(struct progress *progress, const char *title,
 	progress->last_percent = -1;
 	progress->delayed_percent_treshold = percent_treshold;
 	progress->delay = delay;
+	progress->throughput = NULL;
 	set_progress_signal();
 }
 
@@ -160,5 +161,4 @@ void stop_progress(struct progress *progress)
 	}
 	clear_progress_signal();
 	free(progress->throughput);
-	progress->throughput = NULL;
 }


Nicolas
Previous: Junio C HamanoNext: Nicolas Pitre
Message 4 of 5 in “add throughput to progress display”
  1. 1/2 add throughput to progress displayNicolas Pitre, Oct 29, 2007
  2. Johannes SixtOct 30, 2007
  3. Junio C HamanoOct 30, 2007
  4. Nicolas PitreOct 30, 2007
  5. Nicolas PitreOct 30, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.