From: Florian Forster Date: Mon, 31 Aug 2009 15:16:40 +0000 (+0200) Subject: contrib/collection3: GenericStacked: Use stacking by default. X-Git-Tag: collectd-4.6.5~10 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6cd3f6a3bcec1298eeb79ce531858919388a05e5;p=collectd.git contrib/collection3: GenericStacked: Use stacking by default. --- diff --git a/contrib/collection3/lib/Collectd/Graph/Type/GenericStacked.pm b/contrib/collection3/lib/Collectd/Graph/Type/GenericStacked.pm index 8596ae9d..c5114a80 100644 --- a/contrib/collection3/lib/Collectd/Graph/Type/GenericStacked.pm +++ b/contrib/collection3/lib/Collectd/Graph/Type/GenericStacked.pm @@ -89,6 +89,10 @@ sub getRRDArgs $stacking = 1; } } + else # if (!$stacking) + { + $stacking = 1; + } if (defined $obj->{'rrd_vertical'}) { @@ -139,7 +143,8 @@ sub getRRDArgs "DEF:max${i}=${filename}:${data_source}:MAX"); } - if ($stacking) { + if ($stacking) + { for (my $i = @$idents - 1; $i >= 0; $i--) { if ($i == (@$idents - 1)) @@ -170,7 +175,7 @@ sub getRRDArgs "AREA:cdef${i}#${color}"); } } - else + else # if (!$stacking) { for (my $i = @$idents - 1; $i >= 0; $i--) { @@ -179,7 +184,6 @@ sub getRRDArgs } } - for (my $i = 0; $i < @$idents; $i++) { my $type_instance = $idents->[$i]{'type_instance'};