projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Mon 8/30/10 20:43

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Mon 8/30/10 20:43
Michael Larabel  
 
Mon 8/30/10 20:37
Michael Larabel  
pts-core: Last minute... 
Sat 8/28/10 12:53
Michael Larabel  
pts-core: Detect if a... 
Sat 8/28/10 10:34
Michael Larabel  
pts-core: Fix test result... 
Fri 8/27/10 8:51
Michael Larabel  
pts-core: When doing a... 
Wed 8/25/10 18:46
Michael Larabel  
 
 
> --git a/pts-core/functions/pts-functions.php b/pts-core/functions/pts-functions.php
index fd43149
..6451215 100644
--- a/pts-core/functions/pts-functions.php
+++ b/pts-core/functions/pts-functions.php
@@ -276,+276,@@ function pts_hw_string()
     
$hw_string .= "Motherboard Chipset: " motherboard_chipset_string() . ", ";
     
$hw_string .= "System Memory: " memory_mb_capacity() . "MB, ";
     
$hw_string .= "Graphics: " graphics_processor_string() . ", ";
-    
$hw_string .= "Screen Resolution: " current_screen_width() . "x" current_screen_height() . " ";
+    
$hw_string .= "Screen Resolution: " current_screen_resolution() . " ";

     return 
$hw_string;
 }
diff --git a/pts-core/functions/pts-functions_linux.php b/pts-core/functions/pts-functions_linux.php
index 5d08edd
..6b5385b 100644
--- a/pts-core/functions/pts-functions_linux.php
+++ b/pts-core/functions/pts-functions_linux.php
@@ -90,+90,@@ function memory_mb_capacity()

     return 
$info;
 }
-function 
current_screen_resolution()
+function 
xrandr_screen_resolution()
 {
     
$info shell_exec("xrandr");

@@ -
110,14 +110,23 @@ function current_screen_resolution()
 }
 function 
current_screen_width()
 {
-    
$resolution current_screen_resolution();
+    
$resolution xrandr_screen_resolution();
     return 
$resolution[0];
 }
 function 
current_screen_height()
 {
-    
$resolution current_screen_resolution();
+    
$resolution xrandr_screen_resolution();
     return 
$resolution[1];
 }
+function 
current_screen_resolution()
+{
+    if((
$width current_screen_width()) != "Unknown" && ($height current_screen_height()) != "Unknown")
+        
$resolution $width "x" $height;
+    else
+        
$resolution "Unknown";
+
+    return 
$resolution;
+}
 function 
parse_lsb_output($desc)
 {

<
 
Phoronix.com
Linux Driver Forums
Copyright © 2010 by Phoronix Media