1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
kosaki 2011-06-01 13:03:25 +00:00
parent dcc1f64cb0
commit 859da83455
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Jun 1 21:57:08 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (native_sleep): fix 1000times calculation error.
this is a regression since r31457. [Bug #4808] [ruby-dev:43606]
Wed Jun 1 17:19:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c: remove unused macro.

View file

@ -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);
}