diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-25 13:37:50 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-25 13:37:50 (GMT) |
commit | 933209689e8d07e3ce00c68ca26e001b130f0b62 (patch) | |
tree | 91a8bd0bc379c195d906d0253475977679d7e628 /Modules | |
parent | b72e69e52958ca4f381ef1f4a6f2130a7a31f4bf (diff) | |
download | cpython-933209689e8d07e3ce00c68ca26e001b130f0b62.zip cpython-933209689e8d07e3ce00c68ca26e001b130f0b62.tar.gz cpython-933209689e8d07e3ce00c68ca26e001b130f0b62.tar.bz2 |
Issue #20311: Revert 033137c12d88, select.epoll.poll() rounds again the timeout
towards zero
Diffstat (limited to 'Modules')
-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 ab2016a..c492224 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) { |