dl and ulspeed are now curl_off_t so typecast them to double when we

return their values
This commit is contained in:
Daniel Stenberg 2004-03-11 21:51:55 +00:00
Родитель d6edcfb486
Коммит 9d064a3927
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -141,10 +141,10 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
*param_doublep = (double)data->progress.downloaded;
break;
case CURLINFO_SPEED_DOWNLOAD:
*param_doublep = data->progress.dlspeed;
*param_doublep = (double)data->progress.dlspeed;
break;
case CURLINFO_SPEED_UPLOAD:
*param_doublep = data->progress.ulspeed;
*param_doublep = (double)data->progress.ulspeed;
break;
case CURLINFO_SSL_VERIFYRESULT:
*param_longp = data->set.ssl.certverifyresult;