From 859da834551657478bec39e55058e987780fcc54 Mon Sep 17 00:00:00 2001 From: kosaki Date: Wed, 1 Jun 2011 13:03:25 +0000 Subject: * thread_pthread.c (native_sleep): fix 1000times calculation error. this is a regression since r31457. [Bug #4808] [ruby-dev:43606] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_pthread.c') 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); } -- cgit v1.2.3