mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Fix error in ca436a9927
This caused average download rate to be always 0 because it was never set
This commit is contained in:
parent
ca436a9927
commit
116f9d88f2
@ -3183,8 +3183,8 @@ int Downloader::progressCallbackForThread(void *clientp, curl_off_t dltotal, cur
|
||||
info.dltotal = dltotal;
|
||||
|
||||
// trying to get rate and setting to NaN if it fails
|
||||
if (CURLE_OK != curl_easy_getinfo(xferinfo->curlhandle, CURLINFO_SPEED_DOWNLOAD, &info.rate))
|
||||
info.rate_avg = std::numeric_limits<double>::quiet_NaN();
|
||||
if (CURLE_OK != curl_easy_getinfo(xferinfo->curlhandle, CURLINFO_SPEED_DOWNLOAD, &info.rate_avg))
|
||||
info.rate_avg = std::numeric_limits<double>::quiet_NaN();
|
||||
|
||||
// setting full dlwnow and dltotal
|
||||
if (xferinfo->offset > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user