Skip to content

Commit

Permalink
pts-Graph: Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellarabel committed Oct 25, 2015
1 parent ae90fae commit 9fc2491
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pts-core/objects/pts_Graph/pts_graph_horizontal_bars.php
Expand Up @@ -88,7 +88,7 @@ protected function render_graph_bars()
foreach($this->results as $identifier => &$group)
{
$paint_color = $this->get_paint_color($identifier);
foreach($group as &$buffer_item)
foreach($group as &$buffer_item && !$this->is_multi_way_comparison)
{
// if identifier is 0, not a multi-way comparison or anything special
if($identifier == 0)
Expand All @@ -97,7 +97,7 @@ protected function render_graph_bars()
$result_identifier = strtolower($buffer_item->get_result_identifier());
if(strpos($result_identifier, 'geforce') !== false || strpos($result_identifier, 'nvidia') !== false)
{
$paint_color = '#75b900';
$paint_color = '#77b900';
}
else if(strpos($result_identifier, 'radeon') !== false || strpos($result_identifier, 'amd ') !== false)
{
Expand Down
2 changes: 1 addition & 1 deletion pts-core/objects/pts_Graph/pts_graph_lines.php
Expand Up @@ -403,7 +403,7 @@ protected function graph_key_height()
}

$statistics_header_height = $this->getStatisticsHeaderHeight();
$extra_spacing = 4;
$extra_spacing = 16;
return ceil($this->test_result->test_result_buffer->get_count() / $this->i['keys_per_line']) * $this->i['key_line_height']
+ $statistics_header_height + $extra_spacing;
}
Expand Down

0 comments on commit 9fc2491

Please sign in to comment.