summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 03f2426)
raw | patch | inline | side by side (parent: 03f2426)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 31 Aug 2009 15:16:40 +0000 (17:16 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 31 Aug 2009 15:18:15 +0000 (17:18 +0200) |
contrib/collection3/lib/Collectd/Graph/Type/GenericStacked.pm | patch | blob | history |
diff --git a/contrib/collection3/lib/Collectd/Graph/Type/GenericStacked.pm b/contrib/collection3/lib/Collectd/Graph/Type/GenericStacked.pm
index 8596ae9df673be2a0054e2bc68460fbf1b66af45..c5114a8019ddd3bed411343649adb9ede404d76b 100644 (file)
$stacking = 1;
}
}
+ else # if (!$stacking)
+ {
+ $stacking = 1;
+ }
if (defined $obj->{'rrd_vertical'})
{
"DEF:max${i}=${filename}:${data_source}:MAX");
}
- if ($stacking) {
+ if ($stacking)
+ {
for (my $i = @$idents - 1; $i >= 0; $i--)
{
if ($i == (@$idents - 1))
"AREA:cdef${i}#${color}");
}
}
- else
+ else # if (!$stacking)
{
for (my $i = @$idents - 1; $i >= 0; $i--)
{
}
}
-
for (my $i = 0; $i < @$idents; $i++)
{
my $type_instance = $idents->[$i]{'type_instance'};