fixed nototal option which was not properly set in common.inc.php

add new nodetails option to not display each device/port on the legend when graphing lots of devices
add new aggregates on multibits graphs
This commit is contained in:
Mickael Marchand
2015-05-10 17:52:46 +02:00
parent 960ecadf31
commit a43165ec1b
2 changed files with 68 additions and 21 deletions

View File

@@ -7,6 +7,8 @@ if($config['trim_tobias']) { $width+=12; }
if ($_GET['height']) { $height = mres($_GET['height']); }
if ($_GET['inverse']) { $in = 'out'; $out = 'in'; $inverse=TRUE; } else { $in = 'in'; $out = 'out'; }
if ($_GET['legend'] == "no") { $rrd_options .= " -g"; }
if ($_GET['nototal']) { $nototal=TRUE;} else { $nototal=FALSE;}
if ($_GET['nodetails']) { $nodetails=TRUE; } else { $nodetails=FALSE; }
if ($_GET['title'] == "yes") { $rrd_options .= " --title='".$graph_title."' "; }
if (isset($_GET['graph_title'])) { $rrd_options .= " --title='".$_GET['graph_title']."' "; }