Class: Facter::Processors::GNU
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Base
#get_physical_processor_count, #get_processor_list, #get_processor_speed
Instance Method Details
#get_processor_count ⇒ Object
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 |