summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_parsing.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-09 21:41:49 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-09 21:41:49 -0400
commit11ffb24605e892587d534aed7d49a8d274eedec4 (patch)
tree16c9a8fc09226a5304cde871d3b100895990fb17 /pts-core/functions/pts-functions_system_parsing.php
parenta35aa0be6157abad67dbb19630682cf36ea4860c (diff)
downloadphoronix-test-suite-upstream-11ffb24605e892587d534aed7d49a8d274eedec4.tar.gz
phoronix-test-suite-upstream-11ffb24605e892587d534aed7d49a8d274eedec4.tar.xz
phoronix-test-suite-upstream-11ffb24605e892587d534aed7d49a8d274eedec4.zip
pts-core: Improve GPU string detection for open-source drivers
Diffstat (limited to 'pts-core/functions/pts-functions_system_parsing.php')
-rw-r--r--pts-core/functions/pts-functions_system_parsing.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/pts-core/functions/pts-functions_system_parsing.php b/pts-core/functions/pts-functions_system_parsing.php
index 520f821..c6ba28f 100644
--- a/pts-core/functions/pts-functions_system_parsing.php
+++ b/pts-core/functions/pts-functions_system_parsing.php
@@ -96,7 +96,7 @@ function read_sensors($attribute)
return $value;
}
-function read_pci($desc)
+function read_pci($desc, $clean_string = true)
{
$info = shell_exec("lspci 2>&1");
@@ -123,7 +123,7 @@ function read_pci($desc)
if(($strlen = strlen($info)) < 6 || $strlen > 96)
$info = "N/A";
- else
+ else if($clean_string)
$info = pts_clean_information_string($info);
}