aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
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;
}