X-Git-Url: http://git.ipfire.org/?p=collecty.git;a=blobdiff_plain;f=src%2Fcollecty%2Fplugins%2Fentropy.py;h=e6e920d02ce528ff309d1c1efb46490dedbe4bce;hp=f800f9a068ea78f77228bff68558ad7837e99995;hb=f181246a44db1e5e80a6181bd94ca70502878cc3;hpb=72364063b0582dd1b4bddf8557271eb231af846d diff --git a/src/collecty/plugins/entropy.py b/src/collecty/plugins/entropy.py index f800f9a..e6e920d 100644 --- a/src/collecty/plugins/entropy.py +++ b/src/collecty/plugins/entropy.py @@ -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):