diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-25 14:37:50 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-25 14:37:50 +0100 |
commit | 933209689e8d07e3ce00c68ca26e001b130f0b62 (patch) | |
tree | 91a8bd0bc379c195d906d0253475977679d7e628 /Modules/selectmodule.c | |
parent | b72e69e52958ca4f381ef1f4a6f2130a7a31f4bf (diff) | |
download | cpython-git-933209689e8d07e3ce00c68ca26e001b130f0b62.tar.gz |
Issue #20311: Revert 033137c12d88, select.epoll.poll() rounds again the timeout
towards zero
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r-- | Modules/selectmodule.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) { |