@property
def bogomips(self):
- return float(self.__info["bogomips"])
+ return float(self.__cpuinfo["bogomips"])
@property
def model(self):
- return int(self.__info["model"])
+ return int(self.__cpuinfo["model"])
+
+ @property
+ def model_string(self):
+ return self.__cpuinfo["model_name"]
@property
def vendor(self):
- return self.__info["vendor"]
+ return self.__cpuinfo["vendor_id"]
@property
def stepping(self):
- return int(self.__info["stepping"])
+ return int(self.__cpuinfo["stepping"])
@property
def flags(self):
- return self.__info["flags"].split()
+ return self.__cpuinfo["flags"].split()
@property
def speed(self):
@property
def family(self):
- return int(self.__info["family"])
+ return int(self.__cpuinfo["cpu_family"])
@property
def count(self):
print "Virtype:", c.virtype
print "Family:", c.family
print "Count:", c.count
+ print "Model string:", c.model_string