summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_cpu.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-10 12:09:13 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-10 12:09:13 -0400
commit2f112b783082f934fa92df15a319f456855009c3 (patch)
tree9b20813a75602c9d70a5bbf7c290871d662c00e7 /pts-core/functions/pts-functions_system_cpu.php
parentce5aeecc23f072af281344f43df4cc172f70a3a8 (diff)
downloadphoronix-test-suite-upstream-2f112b783082f934fa92df15a319f456855009c3.tar.gz
phoronix-test-suite-upstream-2f112b783082f934fa92df15a319f456855009c3.tar.xz
phoronix-test-suite-upstream-2f112b783082f934fa92df15a319f456855009c3.zip
pts-core: Few small changes
Diffstat (limited to 'pts-core/functions/pts-functions_system_cpu.php')
-rw-r--r--pts-core/functions/pts-functions_system_cpu.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_system_cpu.php b/pts-core/functions/pts-functions_system_cpu.php
index 7560c2f..efd642d 100644
--- a/pts-core/functions/pts-functions_system_cpu.php
+++ b/pts-core/functions/pts-functions_system_cpu.php
@@ -101,7 +101,7 @@ function processor_string()
{
if(IS_SOLARIS)
{
- $info = trim(shell_exec("dmesg | grep cpu0"));
+ $info = trim(shell_exec("dmesg 2>&1 | grep cpu0"));
$info = substr($info, strrpos($info, "cpu0:") + 6);
$info = append_processor_frequency(pts_clean_information_string($info), 0);
}
@@ -258,4 +258,5 @@ function current_processor_usage()
return pts_trim_double($percent);
}
+
?>