diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-27 15:35:58 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-27 15:35:58 -0500 |
commit | 502ac8e9fb41cfc4fb24222e3ec0d1c2f3833ed8 (patch) | |
tree | 2406c26886dc9b3f979adf3c4811a3a845c25e40 | |
parent | e0bf310ff2f2b201c8f0cffbe3055ee7b11f2b07 (diff) | |
download | phoronix-test-suite-upstream-502ac8e9fb41cfc4fb24222e3ec0d1c2f3833ed8.tar.gz phoronix-test-suite-upstream-502ac8e9fb41cfc4fb24222e3ec0d1c2f3833ed8.tar.xz phoronix-test-suite-upstream-502ac8e9fb41cfc4fb24222e3ec0d1c2f3833ed8.zip |
pts-core: Clean up Display / X.Org server reported string
-rw-r--r-- | CHANGE-LOG | 1 | ||||
-rw-r--r-- | pts-core/functions/pts-functions_system.php | 2 | ||||
-rw-r--r-- | pts-core/functions/pts-functions_system_software.php | 5 | ||||
-rw-r--r-- | pts-core/objects/pts_Graph/pts_Graph.php | 1 |
4 files changed, 7 insertions, 2 deletions
@@ -8,6 +8,7 @@ Phoronix Test Suite (Git) - pts-core: Improve motherboard southbridge detection for some Intel ICH Chipsets - pts-core: Add pts_test_installed() boolean function - pts-core: Add pts_installed_test_tandem_XmlReader object +- pts-core: Clean up Display / X.Org server reported string - pts: Add UXA acceleration check to GtkPerf test note reporting - pts: Add 2d-test base profile that reports 2D acceleration mode using Cascading Test Profiles - pts_Graph: Tweak formatting of basic graph attributes diff --git a/pts-core/functions/pts-functions_system.php b/pts-core/functions/pts-functions_system.php index 253d0a5..5dc01db 100644 --- a/pts-core/functions/pts-functions_system.php +++ b/pts-core/functions/pts-functions_system.php @@ -55,7 +55,7 @@ function pts_sw_string() array_push($software, "Desktop: " . $desktop); } - array_push($software, "X.Org Server: " . sw_os_graphics_subsystem()); + array_push($software, "Display Server: " . sw_os_graphics_subsystem()); if(($ddx = sw_xorg_ddx_driver_info()) != "") { diff --git a/pts-core/functions/pts-functions_system_software.php b/pts-core/functions/pts-functions_system_software.php index eb5e7fd..01bc701 100644 --- a/pts-core/functions/pts-functions_system_software.php +++ b/pts-core/functions/pts-functions_system_software.php @@ -422,6 +422,11 @@ function sw_os_graphics_subsystem() $info = trim(substr($info, strrpos($info, "Server") + 6)); } + if($info != "Unknown") + { + $info = "X.Org Server " . $info; + } + return $info; } function sw_os_username() diff --git a/pts-core/objects/pts_Graph/pts_Graph.php b/pts-core/objects/pts_Graph/pts_Graph.php index 6e8a907..c152511 100644 --- a/pts-core/objects/pts_Graph/pts_Graph.php +++ b/pts-core/objects/pts_Graph/pts_Graph.php @@ -546,7 +546,6 @@ abstract class pts_Graph } protected function return_graph_image() { - $this->graph_image->render_image($this->graph_output, 5); $this->graph_image->destroy_image(); } |