We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cca522 + 5ba1d0b commit 5fd3040Copy full SHA for 5fd3040
lib/concurrent-ruby/concurrent/utility/processor_counter.rb
@@ -119,7 +119,7 @@ def compute_processor_count
119
120
def compute_physical_processor_count
121
ppc = case RbConfig::CONFIG["target_os"]
122
- when /darwin1/
+ when /darwin\d\d/
123
IO.popen("/usr/sbin/sysctl -n hw.physicalcpu", &:read).to_i
124
when /linux/
125
cores = {} # unique physical ID / core ID combinations
0 commit comments