Class: Facter::Processors::GNU

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

Direct Known Subclasses

Linux

Instance Method Summary collapse

Methods inherited from Base

#get_physical_processor_count, #get_processor_list, #get_processor_speed

Instance Method Details

#get_processor_countObject



54
55
56
57
58
59
60
61
# File 'lib/facter/processors/os.rb', line 54

def get_processor_count
  processor_list = get_processor_list
  if processor_list.length != 0
    processor_list.length
  else
    count_cpu_from_sysfs
  end
end