提交 997770f5 编写于 作者: Y yuuji.yaginuma

Check the actual constant used

Follow up 0454d2cc.
上级 968c69da
......@@ -56,7 +56,7 @@ class Event
attr_accessor :payload
def self.clock_gettime_supported? # :nodoc:
defined?(Process::CLOCK_PROCESS_CPUTIME_ID) &&
defined?(Process::CLOCK_THREAD_CPUTIME_ID) &&
!Gem.win_platform? &&
!RUBY_PLATFORM.match?(/solaris/i)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册