|
@@ -36,7 +36,7 @@ int __libc_poll(struct pollfd *fds, nfds_t nfds, int timeout)
|
|
struct timespec *ts = NULL, tval;
|
|
struct timespec *ts = NULL, tval;
|
|
if (timeout > 0) {
|
|
if (timeout > 0) {
|
|
tval.tv_sec = timeout / 1000;
|
|
tval.tv_sec = timeout / 1000;
|
|
- tval.tv_nsec = (timeout % 1000) *1000;
|
|
|
|
|
|
+ tval.tv_nsec = (timeout % 1000) * 1000000;
|
|
ts = &tval;
|
|
ts = &tval;
|
|
}
|
|
}
|
|
return ppoll(fds, nfds, ts, NULL);
|
|
return ppoll(fds, nfds, ts, NULL);
|