Add clock speed to processor description for SPARC CPU.

This commit is contained in:
Chris Gardner 2013-05-29 21:00:21 +01:00
parent 35ee8a16de
commit f05540cb48

View file

@ -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)