Skip to content
Snippets Groups Projects
Commit bbdc9f15 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

added typecasts to make the timers calculate with doubles, not longs as they

accidentally did after the Curl_tvdiff() interface change
parent ae4f8243
No related branches found
No related tags found
No related merge requests found
......@@ -119,15 +119,15 @@ void Curl_pgrsTime(struct SessionHandle *data, timerid timer)
case TIMER_NAMELOOKUP:
data->progress.t_nslookup +=
Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle)/1000;
(double)Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle)/1000;
break;
case TIMER_CONNECT:
data->progress.t_connect +=
Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle)/1000;
(double)Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle)/1000;
break;
case TIMER_PRETRANSFER:
data->progress.t_pretransfer +=
Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle)/1000;
(double)Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle)/1000;
break;
case TIMER_POSTRANSFER:
/* this is the normal end-of-transfer thing */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment