diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-07-25 20:26:18 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-07-25 20:26:18 -0400 |
commit | 2ac310112ae98a46082f47682567c05335edc7ea (patch) | |
tree | d1e5a76aee4a63d236c64ad54d28c65bc46e7301 /pts-core/functions/pts-functions_system_cpu.php | |
parent | 7b64af0f224f6a34dc0142e61b575c87609579c1 (diff) | |
download | phoronix-test-suite-upstream-2ac310112ae98a46082f47682567c05335edc7ea.tar.gz phoronix-test-suite-upstream-2ac310112ae98a46082f47682567c05335edc7ea.tar.xz phoronix-test-suite-upstream-2ac310112ae98a46082f47682567c05335edc7ea.zip |
pts-core: Fix for detection of single-core processors
Diffstat (limited to 'pts-core/functions/pts-functions_system_cpu.php')
-rw-r--r-- | pts-core/functions/pts-functions_system_cpu.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_system_cpu.php b/pts-core/functions/pts-functions_system_cpu.php index e6a5850..d00a821 100644 --- a/pts-core/functions/pts-functions_system_cpu.php +++ b/pts-core/functions/pts-functions_system_cpu.php @@ -44,7 +44,7 @@ function processor_string() $cpu_strings = read_cpuinfo("model name"); $cpu_strings_unique = array_unique($cpu_strings); - if($physical_cpu_count == 1) + if($physical_cpu_count == 1 || empty($physical_cpu_count)) { // Just one processor $info = append_processor_frequency(pts_clean_information_string($cpu_strings[0])); |