]> git.ipfire.org Git - collecty.git/commitdiff
Make the graph title optional
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 13 Dec 2015 00:06:12 +0000 (01:06 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 13 Dec 2015 00:06:41 +0000 (01:06 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/collecty/plugins/base.py

index a4d2d72c4984382a9ed58524e918f75c866d9ce6..7a613161734eeb9df2f88d509b2a9114ddd3bace 100644 (file)
@@ -516,7 +516,7 @@ class GraphTemplate(object):
                return self.plugin.log
 
        def _make_command_line(self, interval, format=DEFAULT_IMAGE_FORMAT,
-                       width=None, height=None):
+                       width=None, height=None, with_title=True):
                args = []
 
                args += GRAPH_DEFAULT_ARGUMENTS
@@ -530,7 +530,7 @@ class GraphTemplate(object):
                args += self.rrd_graph_args
 
                # Graph title
-               if self.graph_title:
+               if with_title and self.graph_title:
                        args += ["--title", self.graph_title]
 
                # Vertical label