Add clock speed to processor description for SPARC CPU.

reviewable/pr18780/r1
Chris Gardner 12 years ago
parent 35ee8a16de
commit f05540cb48

@ -669,8 +669,13 @@ class SunOSHardware(Hardware):
brand = ''
elif key == 'brand':
brand = data[1].strip()
elif key == 'clock_MHz':
clock_mhz = data[1].strip()
elif key == 'implementation':
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:
self.facts['processor'] = []
self.facts['processor'].append(processor)

Loading…
Cancel
Save