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
commit50db35e5d367107ecbbcbd2a13c20669d19270d4 (patch)
tree4813c532f24fe8f27223da1ce10632ba27fdb4ca /Library/Homebrew/hardware.rb
parentdc454aad923b020475944cfdd3b5167ccd3071b7 (diff)
downloadbrew-50db35e5d367107ecbbcbd2a13c20669d19270d4.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