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_config.php b/pts-core/functions/pts-functions_config.php
index 1bca016
..afd93fd 100644
--- a/pts-core/functions/pts-functions_config.php
+++ b/pts-core/functions/pts-functions_config.php
@@ -54,+54,@@ function pts_read_user_config($xml_pointer$value null$tandem_xml null)
 }
 function 
pts_find_home($path)
 {
-    if(
strpos($path'~') !== FALSE)
+    if(
strpos($path"~/") !== FALSE)
     {
     
/*    $whoami = trim(shell_exec("whoami"));

@@ -64,7 +64,7 @@ function pts_find_home($path)
             $home_path = "/home/$whoami"; */

         
$home_path pts_posix_userhome();
-        
$path str_replace('~'$home_path$path);
+        
$path str_replace("~/"$home_path$path);
     }
     return 
$path;
 }
diff --git a/pts-core/objects/object_pts_Graph.php b/pts-core/objects/object_pts_Graph.php
index 0b343c8
..cef37d0 100644
--- a/pts-core/objects/object_pts_Graph.php
+++ b/pts-core/objects/object_pts_Graph.php
@@ -54,+54,@@ class pts_Graph
     
var $graph_font_size_sub_heading 12// Font size of headers
     
var $graph_font_size_axis_heading 11// Font size of axis headers
     
var $graph_watermark_text "PHORONIX-TEST-SUITE.COM"// Text for watermark in upper right hand corner. If null, no watermark will display
+    var $graph_version "";
+    var 
$graph_proportion "";

     
// CHANGE DIRECTORY FOR TTF FONT LOCATION INSIDE __construct FUNCTION

@@ -95,+97,17 @@ class pts_Graph
     
{
         
$this->graph_identifiers $data_array;
     }
+    public function 
loadGraphVersion($data)
+    {
+        
$this->graph_version "PTS v" $data;
+    }
+    public function 
loadGraphProportion($data)
+    {
+        if(
$data == "HIB")
+            
$this->graph_proportion "* More is better";
+        else if(
$data == "LIB")
+            
$this->graph_proportion "* Less is better";
+    }
     public function 
loadGraphData($data_array)
     {
         
loadGraphValues($data_array);
@@ -
295,+308,@@ class pts_Graph
         imagefilledrectangle
($this->graph_image$this->graph_left_start$this->graph_top_start$this->graph_left_end$this->graph_top_end$this->graph_color_body);
         
imagerectangle($this->graph_image$this->graph_left_start$this->graph_top_start$this->graph_left_end$this->graph_top_end$this->graph_color_border);

-
         if(
$this->graph_body_image != FALSE)
         {
             
imagecopymerge($this->graph_image$this->graph_body_image$this->graph_left_start + (($this->graph_left_end $this->graph_left_start) / 2) - imagesx($this->graph_body_image) / 2$this->graph_top_start + (($this->graph_top_end $this->graph_top_start) / 2) - imagesy($this->graph_body_image) / 200imagesx($this->graph_body_image), imagesy($this->graph_body_image), 95);
@@ -
303,+315,@@ class pts_Graph
         
}

         
// Text
+        $this->gd_write_text_left($this->graph_proportion7$this->graph_color_body_light$this->graph_left_start 1$this->graph_top_start 8);
         
$this->gd_write_text_center($this->graph_title$this->graph_font_size_heading$this->graph_color_main_headers"GRAPH_CENTER"6);
         
$this->gd_write_text_center($this->graph_sub_title$this->graph_font_size_sub_heading$this->graph_color_main_headers"GRAPH_CENTER"30);
         
$this->gd_write_text_center($this->graph_y_title$this->graph_font_size_axis_heading$this->graph_color_headers4$this->graph_top_start + (($this->graph_top_end $this->graph_top_start) / 2), TRUE);
diff --git a/pts-core/pts-results-viewer/viewer.xsl b/pts-core/pts-results-viewer/viewer.xsl
index 4baa083
..b726a0b 100644
--- a/pts-core/pts-results-viewer/viewer.xsl
+++ b/pts-core/pts-results-viewer/viewer.xsl
@@ -57,+57,@@
                                 </
div>
                             </
xsl:for-each>
                         </
div>
-                        <
div class="pts_benchmark_img_area"><img width="580" height="300"><xsl:attribute name="src">http://www.phoronix-test-suite.com/pts-grapher/r/graph-remote.php?t=<xsl:value-of select="Name" />&amp;s=<xsl:value-of select="Attributes"/>&amp;n=<xsl:value-of select="Version"/>&amp;u=<xsl:value-of select="Scale"/>&amp;p=<xsl:value-of select="Proportion"/>&amp;i=<xsl:for-each select="Results/Group"><xsl:for-each select="Entry"><xsl:value-of select="Identifier"/>;</xsl:for-each></xsl:for-each>&amp;v=<xsl:for-each select="Results/Group"><xsl:for-each select="Entry"><xsl:value-of select="Value"/>;</xsl:for-each></xsl:for-each>
+                        <div class="pts_benchmark_img_area"><img width="580" height="300"><xsl:attribute name="src">http://www.phoronix-test-suite.com/pts-grapher/r/graph-remote.php?t=<xsl:value-of select="Name" />&amp;s=<xsl:value-of select="Attributes"/>&amp;n=<xsl:value-of select="Version"/>&amp;u=<xsl:value-of select="Scale"/>&amp;p=<xsl:value-of select="Proportion" />&amp;i=<xsl:for-each select="Results/Group"><xsl:for-each select="Entry"><xsl:value-of select="Identifier"/>;</xsl:for-each></xsl:for-each>&amp;v=<xsl:for-each select="Results/Group"><xsl:for-each select="Entry"><xsl:value-of select="Value"/>;</xsl:for-each></xsl:for-each>
     
</xsl:attribute></img></div>
                     </
xsl:for-each>
                 </
div>
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2010 by Phoronix Media