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

Use Curl_tvdiff to compare times

parent 7d24ce96
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ int Curl_GetFTPResponse(char *buf,
if(data->set.timeout) {
/* if timeout is requested, find out how much remaining time we have */
timeout = data->set.timeout - /* timeout time */
(Curl_tvlong(Curl_tvnow()) - Curl_tvlong(conn->now)); /* spent time */
Curl_tvdiff(Curl_tvnow(), conn->now)/1000; /* spent time */
if(timeout <=0 ) {
failf(data, "Transfer aborted due to timeout");
return -SELECT_TIMEOUT; /* already too little time */
......
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