lib/picky/cores.rb in picky-1.4.1 vs lib/picky/cores.rb in picky-1.4.2

- old
+ new

@@ -81,10 +81,10 @@ end # Returns a mapping # os_name => lambda_which_returns_a_number_of_cores # @@number_of_cores = { - 'darwin' => lambda { `system_profiler SPHardwareDataType | grep 'Total Number Of Cores'`.gsub(/[^\d]/, '') }, + 'darwin' => lambda { `system_profiler SPHardwareDataType | grep -i 'Total Number Of Cores'`.gsub(/[^\d]/, '') }, 'linux' => lambda { `grep -ci ^processor /proc/cpuinfo` } } def self.os_to_core_mapping @@number_of_cores end \ No newline at end of file