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

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Fri 11/21/14 15:52

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Fri 11/21/14 15:52
Michael Larabel  
phoromatic: Fix salted... 
Fri 11/21/14 10:56
Michael Larabel  
 
Fri 11/21/14 10:52
Michael Larabel  
phoromatic: Allow... 
Fri 11/21/14 10:34
Michael Larabel  
phoromatic: Add... 
Wed 11/19/14 9:58
Michael Larabel  
pts-core: Assume http://... 
Wed 11/19/14 9:53
Michael Larabel  
pts-core: Check for file... 
 
> --git a/CHANGE-LOG b/CHANGE-LOG
index 8c998c3
..eafbdba 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -9,+9,@@ Phoronix Test Suite (Git)
 - 
pts-coreAdd ResultPrecision XML tag to results-parser for setting math precision of decimal points on result (default remains 2)
 - 
pts-coreAdd support for writing to $INSTALL_FOOTNOTE during test installations to report custom footnote on generated graphs
 
pts-coreAdd SuiteSparseTinyXMLDUNE external dependencies
+- pts_GraphImprove precision of increments for graph results with sub-1 values
 
phodeviProtect against "undefined" memory strings from DMI data
 
phodeviAdd Wayland Weston version detection
 
phodeviDetect gnome-shell-wayland
diff 
--git a/pts-core/objects/pts_Graph/pts_Graph.php b/pts-core/objects/pts_Graph/pts_Graph.php
index 0206eb7
..b926299 100644
--- a/pts-core/objects/pts_Graph/pts_Graph.php
+++ b/pts-core/objects/pts_Graph/pts_Graph.php
@@ -289,+289,12 @@ abstract class pts_Graph
         
{
             if(
$real_maximum $this->i['mark_count'])
             {
-                
$maximum ceil(($real_maximum 1.35 $this->i['mark_count']) * $this->i['mark_count']);
+                
$maximum = (($real_maximum 1.35 $this->i['mark_count']) * $this->i['mark_count']);
+
+                if(
$maximum 1)
+                {
+                    
round($maximum);
+                }
             }
             else
             {
@@ -
655,+660,@@ abstract class pts_Graph
     
}
     protected function 
render_graph_value_ticks($left_start$top_start$left_end$top_end)
     {
-        
$increment round($this->i['graph_max_value'] / $this->i['mark_count'], 2);
+        
$increment round($this->i['graph_max_value'] / $this->i['mark_count'], $this->i['graph_max_value'] < 10 2);

         if(
$this->i['graph_orientation'] == 'HORIZONTAL')
         {
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2014 by Phoronix Media