Class: Facter::Processors::BSD

Inherits:
Base
  • Object
show all
Defined in:
lib/facter/processors/os.rb

Direct Known Subclasses

OpenBSD

Instance Method Summary collapse

Methods inherited from Base

#get_physical_processor_count, #get_processor_list, #get_processor_speed

Instance Method Details

#get_processor_countObject



171
172
173
# File 'lib/facter/processors/os.rb', line 171

def get_processor_count
  Facter::Util::POSIX.sysctl("hw.ncpu").to_i
end