diff options
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 0a55744650..11bf098bf7 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -836,7 +836,7 @@ native_sleep(rb_thread_t *th, struct timeval *timeout_tv) struct timespec timeout_rel; timeout_rel.tv_sec = timeout_tv->tv_sec; - timeout_rel.tv_nsec = timeout_tv->tv_usec; + timeout_rel.tv_nsec = timeout_tv->tv_usec * 1000; timeout = native_cond_timeout(cond, timeout_rel); } |