mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
Rename "decolore" option
Make its function clearer, and also keep previous behavior if the config option is not defined.
This commit is contained in:
parent
28db9b73df
commit
3a68236a88
@ -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. */
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user