From: SZEDER Gábor Date: Wed, 23 Jun 2021 21:57:36 GMT Subject: [PATCH 4/4] preload-index: fix "Refreshing index" progress line Message-ID: <20210623215736.8279-5-szeder.dev@gmail.com> In-Reply-To: <20210623215736.8279-1-szeder.dev@gmail.com> --- 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