dl and ulspeed are now curl_off_t so typecast them to double when we
return their values
This commit is contained in:
Родитель
d6edcfb486
Коммит
9d064a3927
|
@ -141,10 +141,10 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
|
||||||
*param_doublep = (double)data->progress.downloaded;
|
*param_doublep = (double)data->progress.downloaded;
|
||||||
break;
|
break;
|
||||||
case CURLINFO_SPEED_DOWNLOAD:
|
case CURLINFO_SPEED_DOWNLOAD:
|
||||||
*param_doublep = data->progress.dlspeed;
|
*param_doublep = (double)data->progress.dlspeed;
|
||||||
break;
|
break;
|
||||||
case CURLINFO_SPEED_UPLOAD:
|
case CURLINFO_SPEED_UPLOAD:
|
||||||
*param_doublep = data->progress.ulspeed;
|
*param_doublep = (double)data->progress.ulspeed;
|
||||||
break;
|
break;
|
||||||
case CURLINFO_SSL_VERIFYRESULT:
|
case CURLINFO_SSL_VERIFYRESULT:
|
||||||
*param_longp = data->set.ssl.certverifyresult;
|
*param_longp = data->set.ssl.certverifyresult;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче