ruby-changes:19846
From: kosaki <ko1@a...>
Date: Wed, 1 Jun 2011 22:03:33 +0900 (JST)
Subject: [ruby-changes:19846] kosaki:r31893 (trunk): * thread_pthread.c (native_sleep): fix 1000times calculation error.
kosaki 2011-06-01 22:03:25 +0900 (Wed, 01 Jun 2011) New Revision: 31893 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31893 Log: * thread_pthread.c (native_sleep): fix 1000times calculation error. this is a regression since r31457. [Bug #4808] [ruby-dev:43606] Modified files: trunk/ChangeLog trunk/thread_pthread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 31892) +++ ChangeLog (revision 31893) @@ -1,3 +1,8 @@ +Wed Jun 1 21:57:08 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * 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@g...> * thread_pthread.c: remove unused macro. Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 31892) +++ thread_pthread.c (revision 31893) @@ -836,7 +836,7 @@ 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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/