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

Check the actual constant used

Follow up 0454d2cca9.
This commit is contained in:
yuuji.yaginuma 2019-11-16 14:55:54 +09:00
parent 968c69dae9
commit 997770f595

View file

@ -56,7 +56,7 @@ module ActiveSupport
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