Show the gauge custom graphs with the defined height. If the user can choose the graph height he should be able to see how is used.

This commit is contained in:
Sancho Lerena 2016-06-10 11:42:37 +02:00 committed by axl89
parent 8aac162cd4
commit 38ea5e78d3
1 changed files with 3 additions and 6 deletions

View File

@ -101,12 +101,9 @@ if ($view_graph) {
$height = 50;
if ($stacked == CUSTOM_GRAPH_GAUGE ){
if ( $graph["height"] < 150 )
$height = 150;
elseif( $graph["height"] >= 150 && $graph["height"] < 250 )
$height = $graph["height"];
elseif( $graph["height"] >= 250 )
$height = 200;
// Use the defined graph height, that's why
// the user can setup graph height.
$height = $graph["height"];
}
$name = $graph["name"];