From 2f61ff92d3b28758a8467b9044f93d9bc7fa6dac Mon Sep 17 00:00:00 2001 From: aurhat Date: Sun, 19 Jul 2020 10:03:40 +0200 Subject: [PATCH] Fix number of downloaded packages --- source/src/autodownload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/autodownload.cpp b/source/src/autodownload.cpp index d2354050..56378fff 100644 --- a/source/src/autodownload.cpp +++ b/source/src/autodownload.cpp @@ -379,7 +379,7 @@ bool dlpackage(httpget &h, package *pck, pckserver *s) // download one package f u.set(s ? s->host : pck->host); h.callbackfunc = progress_callback_dlpackage; h.callbackdata = pck->name; - progress_n = progress_of - pendingpackages.length(); + progress_n = progress_of - pendingpackages.length() + 1; if(*u.domain && h.set_host(u.domain)) { if(*u.port) h.set_port(atoi(u.port));