Skip to content

Commit

Permalink
Merge pull request #299 from pedromartinez/patch-1
Browse files Browse the repository at this point in the history
Add support for darwin20
  • Loading branch information
grosser committed Aug 24, 2021
2 parents 9489064 + 4156bb9 commit f456129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parallel/processor_count.rb
Expand Up @@ -12,7 +12,7 @@ def processor_count
def physical_processor_count
@physical_processor_count ||= begin
ppc = case RbConfig::CONFIG["target_os"]
when /darwin1/
when /darwin[12]/,
IO.popen("/usr/sbin/sysctl -n hw.physicalcpu").read.to_i
when /linux/
cores = {} # unique physical ID / core ID combinations
Expand Down

0 comments on commit f456129

Please sign in to comment.