summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_parsing.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-09-14 18:12:09 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-09-14 18:12:09 -0400
commit9e22b4e6e9e17394ffc86f67bcf24a16d49815af (patch)
tree15391f2fb995e94f51f4a18e40a8219b47299e83 /pts-core/functions/pts-functions_system_parsing.php
parent984db82f2771695df14d261a1df8a647ef5fe736 (diff)
downloadphoronix-test-suite-upstream-9e22b4e6e9e17394ffc86f67bcf24a16d49815af.tar.gz
phoronix-test-suite-upstream-9e22b4e6e9e17394ffc86f67bcf24a16d49815af.tar.xz
phoronix-test-suite-upstream-9e22b4e6e9e17394ffc86f67bcf24a16d49815af.zip
pts-core: Add initial support for detecting the motherboard Southbridge
where applicable
Diffstat (limited to 'pts-core/functions/pts-functions_system_parsing.php')
-rw-r--r--pts-core/functions/pts-functions_system_parsing.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/pts-core/functions/pts-functions_system_parsing.php b/pts-core/functions/pts-functions_system_parsing.php
index 47919bb..fb1cc40 100644
--- a/pts-core/functions/pts-functions_system_parsing.php
+++ b/pts-core/functions/pts-functions_system_parsing.php
@@ -135,15 +135,18 @@ function read_pci($desc, $clean_string = true)
$sub_pci_info = substr($pci_info, $pos + strlen($desc[$i]));
$EOL = strpos($sub_pci_info, "\n");
- if(($temp = strpos($sub_pci_info, '/')) < $EOL && $temp > 0)
- if(($temp = strpos($sub_pci_info, ' ', ($temp + 2))) < $EOL && $temp > 0)
- $EOL = $temp;
+ if($clean_string)
+ {
+ if(($temp = strpos($sub_pci_info, '/')) < $EOL && $temp > 0)
+ if(($temp = strpos($sub_pci_info, ' ', ($temp + 2))) < $EOL && $temp > 0)
+ $EOL = $temp;
- if(($temp = strpos($sub_pci_info, '(')) < $EOL && $temp > 0)
- $EOL = $temp;
+ if(($temp = strpos($sub_pci_info, '(')) < $EOL && $temp > 0)
+ $EOL = $temp;
- if(($temp = strpos($sub_pci_info, '[')) < $EOL && $temp > 0)
- $EOL = $temp;
+ if(($temp = strpos($sub_pci_info, '[')) < $EOL && $temp > 0)
+ $EOL = $temp;
+ }
$sub_pci_info = trim(substr($sub_pci_info, 0, $EOL));