diff options
| author | Jack Nagel | 2013-06-13 12:04:58 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-14 10:34:17 -0500 |
| commit | 50db35e5d367107ecbbcbd2a13c20669d19270d4 (patch) | |
| tree | 4813c532f24fe8f27223da1ce10632ba27fdb4ca /Library/Homebrew/hardware.rb | |
| parent | dc454aad923b020475944cfdd3b5167ccd3071b7 (diff) | |
| download | brew-50db35e5d367107ecbbcbd2a13c20669d19270d4.tar.bz2 | |
Use Hardware::CPU module
Diffstat (limited to 'Library/Homebrew/hardware.rb')
| -rw-r--r-- | Library/Homebrew/hardware.rb | 4 |
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 |
