Skip to content

Commit

Permalink
Detect RbConfig::CONFIG["target_os"] == "darwin20"
Browse files Browse the repository at this point in the history
Reported by macOs Big Sur 11.4.
  • Loading branch information
donv committed Jul 29, 2021
1 parent 0cca522 commit 5ba1d0b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -119,7 +119,7 @@ def compute_processor_count

def compute_physical_processor_count
ppc = case RbConfig::CONFIG["target_os"]
when /darwin1/
when /darwin\d\d/
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 5ba1d0b

Please sign in to comment.