diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-11-01 12:17:51 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-11-01 12:17:51 +0000 |
commit | 99888388dcba87a859740867b7c48fc7dfa68e96 (patch) | |
tree | f558a6a1f9cf029d2a20a13920189cc9f8dad320 | |
parent | 7d24ce96513637827334421121a447b84d942058 (diff) |
Use Curl_tvdiff to compare times
-rw-r--r-- | lib/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |