1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

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
parent d6edcfb486
commit 9d064a3927

View File

@ -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;