mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-02 05:52:31 +01:00
Fix error in ca436a9927d673183cae7d227c90d53ca29b1ba6
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…
x
Reference in New Issue
Block a user