From 933209689e8d07e3ce00c68ca26e001b130f0b62 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 25 Jan 2014 14:37:50 +0100 Subject: Issue #20311: Revert 033137c12d88, select.epoll.poll() rounds again the timeout towards zero --- Modules/selectmodule.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Modules/selectmodule.c') diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index ab2016a981..c492224ecb 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -1379,9 +1379,7 @@ pyepoll_poll(pyEpoll_Object *self, PyObject *args, PyObject *kwds) return NULL; } else { - /* epoll_wait() has a resolution of 1 millisecond, round away from zero - to wait *at least* dtimeout seconds. */ - timeout = (int)ceil(dtimeout * 1000.0); + timeout = (int)(dtimeout * 1000.0); } if (maxevents == -1) { -- cgit v1.2.1