summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_cpu.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-08 11:54:51 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-08 11:54:51 -0400
commitfe7e15cdfd16c0e0c3fac347fac0c7356547b997 (patch)
tree0a0b7569c23addbd647071ae016a623967e2f52a /pts-core/functions/pts-functions_system_cpu.php
parente3c68fa81adcd5e48d78c7a3190c0292bddb2dcf (diff)
downloadphoronix-test-suite-upstream-fe7e15cdfd16c0e0c3fac347fac0c7356547b997.tar.gz
phoronix-test-suite-upstream-fe7e15cdfd16c0e0c3fac347fac0c7356547b997.tar.xz
phoronix-test-suite-upstream-fe7e15cdfd16c0e0c3fac347fac0c7356547b997.zip
pts-core: Fix CPU frequency detection for Intel Xeon LV processors and
potentially other CPU families
Diffstat (limited to 'pts-core/functions/pts-functions_system_cpu.php')
-rw-r--r--pts-core/functions/pts-functions_system_cpu.php2
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 eea6f02..faf5dae 100644
--- a/pts-core/functions/pts-functions_system_cpu.php
+++ b/pts-core/functions/pts-functions_system_cpu.php
@@ -161,7 +161,7 @@ function processor_frequency($cpu_core = 0)
else
$info = $cpu_speeds[0];
- $info = pts_trim_double(intval($info) / 1000, 2);
+ $info = pts_trim_double($info / 1000, 2);
}
else
$info = current_processor_frequency($cpu_core);