Fix number of downloaded packages

This commit is contained in:
aurhat
2021-03-08 00:39:13 +01:00
parent b8e445606c
commit 2f61ff92d3
+1 -1
View File
@@ -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));