add an option to not decolore graph

This commit is contained in:
Alexandre Bruyelles 2014-06-16 10:50:12 +02:00
parent f3bd9f36bd
commit ee24f5cced
2 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,8 @@ $asset_cache_life = "604800"; # 604800 seconds = 7 days
$compat_rrdtool12 = false; # compatibility with RRDtool 1.2 (show95th will not work if this is set)
$decolore = true; #decolore the "negative" part of graphs (only usefull if $outispositive is true)
/* Custom links to be shown for each AS. You can use %as% as a
placeholder for the ASN. */
$customlinks = array(

View File

@ -107,7 +107,7 @@ if ($compat_rrdtool12) {
/* generate graph area/stack for inbound */
$i = 0;
foreach ($knownlinks as $link) {
if ($outispositive)
if ($outispositive && $decolore)
$col = $link['color'] . "BB";
else
$col = $link['color'];