Add clock speed to processor description for SPARC CPU.

pull/3044/head
Chris Gardner 12 years ago
parent 68959e7f92
commit f482649cbb

@ -669,8 +669,13 @@ class SunOSHardware(Hardware):
brand = '' brand = ''
elif key == 'brand': elif key == 'brand':
brand = data[1].strip() brand = data[1].strip()
elif key == 'clock_MHz':
clock_mhz = data[1].strip()
elif key == 'implementation': elif key == 'implementation':
processor = brand or data[1].strip() processor = brand or data[1].strip()
# Add clock speed to description for SPARC CPU
if self.facts['machine'] != 'i86pc':
processor += " @ " + clock_mhz + "MHz"
if 'processor' not in self.facts: if 'processor' not in self.facts:
self.facts['processor'] = [] self.facts['processor'] = []
self.facts['processor'].append(processor) self.facts['processor'].append(processor)

Loading…
Cancel
Save