Rename "decolore" option

Make its function clearer, and also keep previous behavior if the
config option is not defined.
This commit is contained in:
Manuel Kasper 2014-06-16 15:49:03 +02:00
parent 28db9b73df
commit 3a68236a88
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ $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)
$brighten_negative = true; # brighten the "negative" part of graphs
/* Custom links to be shown for each AS. You can use %as% as a
placeholder for the ASN. */

View File

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