aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/hardware.rb
diff options
context:
space:
mode:
authorJack Nagel2013-06-13 12:04:58 -0500
committerJack Nagel2013-06-14 10:34:17 -0500
commite17d2a24fc02a3d0f60b872ee41e1bd7df6347c2 (patch)
tree7a1c5b010545eb4529c65d9666e02f5c750f27b0 /Library/Homebrew/hardware.rb
parentdd774b604fcf49a8bf787b13f79abc97a43507c8 (diff)
downloadhomebrew-e17d2a24fc02a3d0f60b872ee41e1bd7df6347c2.tar.bz2
Use Hardware::CPU module
Diffstat (limited to 'Library/Homebrew/hardware.rb')
-rw-r--r--Library/Homebrew/hardware.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb
index 547c3c318..815f4dbc0 100644
--- a/Library/Homebrew/hardware.rb
+++ b/Library/Homebrew/hardware.rb
@@ -37,12 +37,12 @@ class Hardware
end
def self.cores_as_words
- case Hardware.processor_count
+ case Hardware::CPU.cores
when 1 then 'single'
when 2 then 'dual'
when 4 then 'quad'
else
- Hardware.processor_count
+ Hardware::CPU.cores
end
end