summaryrefslogtreecommitdiff
path: root/poll/os2/poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'poll/os2/poll.c')
-rw-r--r--poll/os2/poll.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/poll/os2/poll.c b/poll/os2/poll.c
index 3c36e5e68..a9d5153bf 100644
--- a/poll/os2/poll.c
+++ b/poll/os2/poll.c
@@ -61,7 +61,8 @@ APR_DECLARE(apr_status_t) apr_poll(apr_pollfd_t *aprset, apr_int32_t num,
}
if (timeout > 0) {
- timeout /= 1000; /* convert microseconds to milliseconds */
+ /* convert microseconds to milliseconds (round up) */
+ timeout = (timeout + 999) / 1000;
}
i = select(pollset, num_read, num_write, num_except, timeout);