mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
Merge pull request #825 from devnexen/curl_progress_fix
curl client show progress only when there actually some
This commit is contained in:
commit
22ff171007
1 changed files with 4 additions and 2 deletions
|
@ -124,8 +124,10 @@ static int CL_HTTP_CurlProgressCB(void* ptr, CL_Progresstype total /* unused */,
|
|||
CL_Progresstype uptotal /* unused */, CL_Progresstype upnow /* unused */)
|
||||
{
|
||||
dlhandle_t *dl = (dlhandle_t *)ptr;
|
||||
if (now) {
|
||||
dl->fileDownloadedSize = (size_t)now;
|
||||
Com_DPrintf("CL_HTTP_CurlProgressCB: Downloaded " YQ2_COM_PRIdS "/" YQ2_COM_PRIdS "\n", dl->fileDownloadedSize, dl->fileSize);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue