From 6cd3f6a3bcec1298eeb79ce531858919388a05e5 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 31 Aug 2009 17:16:40 +0200 Subject: [PATCH] contrib/collection3: GenericStacked: Use stacking by default. --- contrib/collection3/lib/Collectd/Graph/Type/GenericStacked.pm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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'}; -- 2.11.0