diff --git a/src/checks.c b/src/checks.c index f0f18d3fd..20ff8db03 100644 --- a/src/checks.c +++ b/src/checks.c @@ -10,6 +10,7 @@ * */ +#include #include #include #include diff --git a/src/proto_http.c b/src/proto_http.c index e3723c1b8..2ce67869d 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -634,7 +634,7 @@ void process_session(struct task *t, struct timeval *next) /* DEBUG code : this should never ever happen, otherwise it indicates * that a task still has something to do and will provoke a quick loop. */ - if (tv_remain2(&now, &t->expire) <= 0) + if (tv_ms_remain2(&now, &t->expire) <= 0) exit(100); #endif *next = t->expire;