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 11:13:06 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-09 11:13:06 -0400
commit556d3cb4467ece6176a36b9cb71cc958b5dd5f19 (patch)
treee2a0cec03a01461b14315d73865732cc6a8024d3 /pts-core/functions/pts-functions_system_parsing.php
parenta0f6ef0993050fe2f532a161053d75093296294f (diff)
downloadphoronix-test-suite-upstream-556d3cb4467ece6176a36b9cb71cc958b5dd5f19.tar.gz
phoronix-test-suite-upstream-556d3cb4467ece6176a36b9cb71cc958b5dd5f19.tar.xz
phoronix-test-suite-upstream-556d3cb4467ece6176a36b9cb71cc958b5dd5f19.zip
pts-core: Don't insert dead monitors in read_xdpy_monitor_info() and
rename function to _xdpy_ it's not _xpdy_
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 03f49af..8902f12 100644
--- a/pts-core/functions/pts-functions_system_parsing.php
+++ b/pts-core/functions/pts-functions_system_parsing.php
@@ -199,13 +199,13 @@ function read_nvidia_extension($attribute)
return $nv_info;
}
-function read_xpdy_monitor_info()
+function read_xdpy_monitor_info()
{
$info = trim(shell_exec("xdpyinfo -ext XINERAMA 2>&1 | grep head"));
$monitor_info = array();
foreach(explode("\n", $info) as $xdpyinfo_line)
- if(!empty($xdpyinfo_line))
+ if(!empty($xdpyinfo_line) && strpos($xdpyinfo_line, "0x0") == FALSE)
array_push($monitor_info, $xdpyinfo_line);
return $monitor_info;