[master] 74e2dd7 trying to guess phks intention

Nils Goroll nils.goroll at uplex.de
Thu May 28 14:46:51 CEST 2015


commit 74e2dd7161ccc1dcaee792a628587a1ff5452b84
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu May 28 14:46:22 2015 +0200

    trying to guess phks intention

diff --git a/bin/varnishd/waiter/cache_waiter_epoll.c b/bin/varnishd/waiter/cache_waiter_epoll.c
index 192c690..47b036f 100644
--- a/bin/varnishd/waiter/cache_waiter_epoll.c
+++ b/bin/varnishd/waiter/cache_waiter_epoll.c
@@ -105,7 +105,7 @@ vwe_thread(void *priv)
 			Wait_Call(w, wp, WAITER_TIMEOUT, now);
 		}
 		then = vwe->next - now;
-		i = (int)floor(1e3 * then);
+		i = (int)ceil(1e3 * then);
 		assert(i > 0);
 		Lck_Unlock(&vwe->mtx);
 		n = epoll_wait(vwe->epfd, ev, NEEV, i);



More information about the varnish-commit mailing list