summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_parsing.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-17 15:27:01 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-17 15:27:01 -0400
commitbed13aff0918a78178db1e16a11d568620f09546 (patch)
tree928b0e009a543f8b4571ab545f04650014ca79d8 /pts-core/functions/pts-functions_system_parsing.php
parent75cf4d5114f02c166c690fc1d9c56f5c63df8eea (diff)
downloadphoronix-test-suite-upstream-bed13aff0918a78178db1e16a11d568620f09546.tar.gz
phoronix-test-suite-upstream-bed13aff0918a78178db1e16a11d568620f09546.tar.xz
phoronix-test-suite-upstream-bed13aff0918a78178db1e16a11d568620f09546.zip
pts-core: Check against error when using the aticonfig-based AMDPCSDB
parser with read_amd_pcsdb() call
Diffstat (limited to 'pts-core/functions/pts-functions_system_parsing.php')
-rw-r--r--pts-core/functions/pts-functions_system_parsing.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_system_parsing.php b/pts-core/functions/pts-functions_system_parsing.php
index 88ac452..378cbb6 100644
--- a/pts-core/functions/pts-functions_system_parsing.php
+++ b/pts-core/functions/pts-functions_system_parsing.php
@@ -233,7 +233,7 @@ function read_amd_pcsdb($attribute)
$info = shell_exec("aticonfig --get-pcs-key=" . $attribute . " 2>&1");
$ati_info = "";
- if(($pos = strpos($info, ":")) > 0)
+ if(($pos = strpos($info, ":")) > 0 && strpos($info, "Error") === FALSE)
{
$ati_info = substr($info, $pos + 2);
$ati_info = substr($ati_info, 0, strpos($ati_info, " "));