projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d24ce9
)
Use Curl_tvdiff to compare times
author
Daniel Stenberg
<daniel@haxx.se>
Thu, 1 Nov 2001 12:17:51 +0000
(12:17 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 1 Nov 2001 12:17:51 +0000
(12:17 +0000)
lib/ftp.c
patch
|
blob
|
history
diff --git
a/lib/ftp.c
b/lib/ftp.c
index
ebbcdfa
..
be2cfdb
100644
(file)
--- a/
lib/ftp.c
+++ b/
lib/ftp.c
@@
-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 */