summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-01 13:03:25 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-01 13:03:25 +0000
commit859da834551657478bec39e55058e987780fcc54 (patch)
treebd418f1b6d29126b35aa443cfd94fe49abcad3db /thread_pthread.c
parentdcc1f64cb0372de4a05ecc3989f07a3460d6ba6a (diff)
* 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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
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);
}