Thread (191 messages) flat view 191 messages, 12 authors, 2022-02-03
STALE1683d

[PATCH 4/4] preload-index: fix "Refreshing index" progress line

From: SZEDER Gábor <hidden>
Date: 2021-06-23 21:57:54
Subsystem: the rest · Maintainer: Linus Torvalds

---
 preload-index.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/preload-index.c b/preload-index.c
index aae6e4a042..757dbeced6 100644
--- a/preload-index.c
+++ b/preload-index.c
@@ -86,7 +86,8 @@ static void *preload_thread(void *_data)
 		struct progress_data *pd = p->progress;
 
 		pthread_mutex_lock(&pd->mutex);
-		display_progress(pd->progress, pd->n + last_nr);
+		pd->n += last_nr;
+		display_progress(pd->progress, pd->n);
 		pthread_mutex_unlock(&pd->mutex);
 	}
 	cache_def_clear(&cache);
-- 
2.32.0.289.g44fbea0957
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help