diff options
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/poll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/poll.c b/libc/sysdeps/linux/common/poll.c index a8366cd27..4fc5a3267 100644 --- a/libc/sysdeps/linux/common/poll.c +++ b/libc/sysdeps/linux/common/poll.c @@ -36,7 +36,7 @@ int __libc_poll(struct pollfd *fds, nfds_t nfds, int timeout) struct timespec *ts = NULL, tval; if (timeout > 0) { tval.tv_sec = timeout / 1000; - tval.tv_nsec = (timeout % 1000) *1000; + tval.tv_nsec = (timeout % 1000) * 1000000; ts = &tval; } return ppoll(fds, nfds, ts, NULL); |