lib/ohai/plugins/aix/cpu.rb in ohai-14.2.0 vs lib/ohai/plugins/aix/cpu.rb in ohai-14.3.0
- old
+ new
@@ -31,12 +31,12 @@
# At least one CPU will be available, but we'll wait to increment this later.
cpu[:available] = 0
cpudevs = shell_out("lsdev -Cc processor").stdout.lines
- #from http://www-01.ibm.com/software/passportadvantage/pvu_terminology_for_customers.html
- #on AIX number of cores and processors are considered same
+ # from http://www-01.ibm.com/software/passportadvantage/pvu_terminology_for_customers.html
+ # on AIX number of cores and processors are considered same
cpu[:real] = cpu[:cores] = cpudevs.length
cpudevs.each.with_index do |c, i|
name, status, location = c.split
index = i.to_s
cpu[index] = Mash.new
@@ -48,10 +48,10 @@
lsattr.each do |attribute|
attrib, value = attribute.split
if attrib == "type"
cpu[index][:model_name] = value
elsif attrib == "frequency"
- cpu[index][:mhz] = value.to_i / (1000 * 1000) #convert from hz to MHz
+ cpu[index][:mhz] = value.to_i / (1000 * 1000) # convert from hz to MHz
else
cpu[index][attrib] = value
end
end
# IBM is the only maker of CPUs for AIX systems.