summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b4e97de)
raw | patch | inline | side by side (parent: b4e97de)
author | Florian Forster <octo@huhu.verplant.org> | |
Thu, 5 Mar 2009 08:41:35 +0000 (09:41 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Thu, 5 Mar 2009 08:41:35 +0000 (09:41 +0100) |
Stacked values above NAN values were not drawn previously..
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 ab95ee2f3f145c6bfdf735e158315f69f053f22a..36c900a2532ddb02374af0d7df5202764bfae6ea 100644 (file)
package Collectd::Graph::Type::GenericStacked;
+# Copyright (C) 2008,2009 Florian octo Forster <octo at verplant.org>
+#
+# This program is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free Software
+# Foundation; only version 2 of the License is applicable.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+# details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
use strict;
use warnings;
use base ('Collectd::Graph::Type');
if ($i == (@$idents - 1))
{
push (@ret,
- "CDEF:cdef${i}=avg${i}");
+ "CDEF:cdef${i}=avg${i},UN,0,avg${i},IF");
}
else
{
my $j = $i + 1;
push (@ret,
- "CDEF:cdef${i}=cdef${j},avg${i},+");
+ "CDEF:cdef${i}=avg${i},UN,0,avg${i},IF,cdef${j},+");
}
}