summaryrefslogtreecommitdiffstats
path: root/pts-core/functions
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-28 07:30:53 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-28 07:30:53 -0500
commit6c24813a1b925ecd518f73854c5588bebdcc4d4c (patch)
treee1fc47be81a2f9ed0be1bac04d8773fe8e2fe62b /pts-core/functions
parent4546c7cc33af8ed9699f81756a1e27add5e3f1b4 (diff)
downloadphoronix-test-suite-upstream-6c24813a1b925ecd518f73854c5588bebdcc4d4c.tar.gz
phoronix-test-suite-upstream-6c24813a1b925ecd518f73854c5588bebdcc4d4c.tar.xz
phoronix-test-suite-upstream-6c24813a1b925ecd518f73854c5588bebdcc4d4c.zip
pts-core: Fix reporting erroneous motherboard string (Found on QEMU
virtualized system)
Diffstat (limited to 'pts-core/functions')
-rw-r--r--pts-core/functions/pts-functions_system_hardware.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_system_hardware.php b/pts-core/functions/pts-functions_system_hardware.php
index 3bb5cc6..1b59e1c 100644
--- a/pts-core/functions/pts-functions_system_hardware.php
+++ b/pts-core/functions/pts-functions_system_hardware.php
@@ -85,7 +85,12 @@ function hw_sys_motherboard_string()
if(empty($info))
{
- $info = read_hal("pci.subsys_vendor");
+ $pci_vendor = read_hal("pci.subsys_vendor");
+
+ if(strpos($pci_vendor, "(") === false)
+ {
+ $info = $pci_vendor;
+ }
}
}