]> git.ipfire.org Git - oddments/fireinfo.git/commitdiff
Use MHz information from /proc/cpuinfo.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 24 Nov 2010 15:39:37 +0000 (16:39 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 24 Nov 2010 15:39:37 +0000 (16:39 +0100)
This is always the correct one.

fireinfo/cpu.py

index cea1ad9fb2587c368fb408b1143212aab13d242d..0a2052c0b8a769ac13f1ffaff14db05c1fafbe3b 100644 (file)
@@ -65,8 +65,7 @@ class CPU(object):
 
        @property
        def speed(self):
-               mhz = float(self.__info["mhz"])
-               return round(mhz)
+               return float(self.__cpuinfo["cpu_MHz"])
 
        @property
        def modes(self):