[#77789] [Ruby trunk Feature#12012] Add Boolean method — prodis@...
Issue #12012 has been updated by Fernando Hamasaki de Amorim.
4 messages
2016/10/27
[ruby-core:77482] [Ruby trunk Bug#12808] Ruby builds do not produce Process::UPTIME constant on macOS Sierra
From:
iamasmith.home@...
Date:
2016-10-04 14:15:56 UTC
List:
ruby-core #77482
Issue #12808 has been reported by Andrew Smith. ---------------------------------------- Bug #12808: Ruby builds do not produce Process::UPTIME constant on macOS Sierra https://bugs.ruby-lang.org/issues/12808 * Author: Andrew Smith * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-darwin16] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- Due to the fact that macOS Sierra does not define CLOCK_UPTIME in /usr/include/time.h the UPTIME constant is never generated during the Ruby build. macOS defines CLOCK_UPTIME_RAW instead as.. clock that increments monotonically, in the same manner as CLOCK_MONOTONIC_RAW, but that does not increment while the system is asleep. The returned value is identical to the result of mach_absolute_time() after the appropriate mach_timebase conversion is applied. It appears this is done to provide a selection for uptime value based on sleeping or non sleeping return value. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>