#413 Cpu speed incorrect Linux X64

precision
closed-fixed
nobody
None
5
2015-05-10
2013-05-20
No

version 3.1.3
includes/os/class.Linux.inc.php line 300

This code is not arm specific. It will extract the max cpu speed and not the actual speed on X64 Linux. When commented out the actual speed is displayed.

                // arm specific code follows
                if (CommonFunctions::rfts('/sys/devices/system/cpu/cpu'.$proc.'/cpufreq/cpuinfo_max_freq', $buf, 1, 4096, false)) {
                    $dev->setCpuSpeed($buf / 1000);
                } 
                // arm specific code ends

Discussion

  • Mieczysław Nalewaj

    • status: open-fixed --> closed-fixed