Class: Facter::Processors::Linux

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

Instance Method Summary collapse

Methods inherited from GNU

#get_processor_count

Methods inherited from Base

#get_processor_count, #get_processor_list, #get_processor_speed

Instance Method Details

#get_physical_processor_countObject



75
76
77
78
79
80
81
# File 'lib/facter/processors/os.rb', line 75

def get_physical_processor_count
  if count = count_physical_cpu_from_sysfs
    count
  else
    count_physical_cpu_from_cpuinfo
  end
end