]> git.ipfire.org Git - collecty.git/blobdiff - src/collecty/plugins/entropy.py
graph templates: Make some atttibutes easier to set
[collecty.git] / src / collecty / plugins / entropy.py
index f800f9a068ea78f77228bff68558ad7837e99995..e6e920d02ce528ff309d1c1efb46490dedbe4bce 100644 (file)
@@ -45,12 +45,15 @@ class GraphTemplateEntropy(base.GraphTemplate):
                "LINE3:entropytrend#000000",
        ]
 
-       rrd_graph_args = [
-               "--title", _("Available entropy"),
-               "--vertical-label", _("Bits"),
+       lower_limit = 0
 
-               "--lower-limit", "0", "--rigid",
-       ]
+       @property
+       def graph_title(self):
+               return _("Available entropy")
+
+       @property
+       def graph_vertical_label(self):
+               return _("Bit")
 
 
 class EntropyObject(base.Object):
@@ -71,7 +74,7 @@ class EntropyPlugin(base.Plugin):
        name = "entropy"
        description = "Entropy Plugin"
 
-       templates = [GraphTemplateEntropy,]
+       templates = [GraphTemplateEntropy]
 
        @property
        def objects(self):