From: Michael Tremer Date: Wed, 24 Nov 2010 15:42:20 +0000 (+0100) Subject: Remove cpu modes information. X-Git-Tag: v0.2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f61d1f3fb720286d241573f8148d9c70f75ef66d;p=oddments%2Ffireinfo.git Remove cpu modes information. --- diff --git a/fireinfo/cpu.py b/fireinfo/cpu.py index 0a2052c..2a07f5e 100644 --- a/fireinfo/cpu.py +++ b/fireinfo/cpu.py @@ -67,10 +67,6 @@ class CPU(object): def speed(self): return float(self.__cpuinfo["cpu_MHz"]) - @property - def modes(self): - return self.__info.get("modes", []) - @property def hypervisor(self): return self.__info["hypervisor"] @@ -103,7 +99,6 @@ if __name__ == "__main__": print "Flags:", c.flags print "Bogomips:", c.bogomips print "Speed:", c.speed - print "Modes:", c.modes print "Hypervisor:", c.hypervisor print "Virtype:", c.virtype print "Family:", c.family diff --git a/fireinfo/system.py b/fireinfo/system.py index 35a4a33..3202054 100644 --- a/fireinfo/system.py +++ b/fireinfo/system.py @@ -48,7 +48,6 @@ class System(object): "flags" : self.cpu.flags, "bogomips" : self.cpu.bogomips, "speed" : self.cpu.speed, - "modes" : self.cpu.modes, "hypervisor" : self.cpu.hypervisor, "virtype" : self.cpu.virtype, "family" : self.cpu.family,