aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-10-12 12:32:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-10-12 12:32:20 +0000
commit532bca41e59e10a86c356058831cf046a3ba78c9 (patch)
treedfaa7d33d510af6ea4db11724583ca0a26159cf7 /lib/url.c
parentb438c46764b680a314000b7ca69bb1d898379d0f (diff)
Curl_tvdiff() now returns a millisecond diff, no double like before
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 2f85212e6..9b24a221b 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1055,14 +1055,14 @@ ConnectionKillOne(struct SessionHandle *data)
* Set higher score for the age passed since the connection
* was used.
*/
- score = Curl_tvlong(now) - Curl_tvlong(conn->now);
+ score = Curl_tvdiff(now, conn->now);
break;
case CURLCLOSEPOLICY_OLDEST:
/*
* Set higher score for the age passed since the connection
* was created.
*/
- score = Curl_tvlong(now) - Curl_tvlong(conn->created);
+ score = Curl_tvdiff(now, conn->created);
break;
}