Module: CommandT::Util
- Defined in:
- lib/command-t/util.rb
Class Method Summary collapse
Class Method Details
.processor_count ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/command-t/util.rb', line 9 def processor_count @processor_count ||= begin count = processor_count! count = 1 if count < 1 # sanity check count = 32 if count > 32 # sanity check count end end |