diff options
Diffstat (limited to 'lib/libpthread/thread/thr_poll.c')
-rw-r--r-- | lib/libpthread/thread/thr_poll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_poll.c b/lib/libpthread/thread/thr_poll.c index ce2b7af..fb6a266 100644 --- a/lib/libpthread/thread/thr_poll.c +++ b/lib/libpthread/thread/thr_poll.c @@ -61,7 +61,7 @@ _libc_poll(struct pollfd *fds, unsigned int nfds, int timeout) } else if (timeout > 0) { /* Convert the timeout in msec to a timespec: */ ts.tv_sec = timeout / 1000; - ts.tv_nsec = (timeout % 1000) * 1000; + ts.tv_nsec = (timeout % 1000) * 1000000; /* Set the wake up time: */ _thread_kern_set_timeout(&ts); |