]> git.ipfire.org Git - collecty.git/blobdiff - src/collecty/plugins/entropy.py
Introduce a colour scheme and fix design of the graphs
[collecty.git] / src / collecty / plugins / entropy.py
index 3c7e6c54d15f382747e569032ec2ff6ccda2138c..352b6a3686cb23a68ba41d7848d0550bb0434518 100644 (file)
@@ -23,6 +23,7 @@ import os
 
 from . import base
 
+from ..colours import *
 from ..i18n import _
 
 ENTROPY_FILE = "/proc/sys/kernel/random/entropy_avail"
@@ -35,7 +36,7 @@ class GraphTemplateEntropy(base.GraphTemplate):
                _ = self.locale.translate
 
                return [
-                       "LINE3:entropy#ff0000:%-15s" % _("Available entropy"),
+                       "LINE2:entropy%s:%-15s" % (PRIMARY, _("Available entropy")),
                        "GPRINT:entropy_max:%12s\:" % _("Maximum") + " %5.0lf",
                        "GPRINT:entropy_min:%12s\:" % _("Minimum") + " %5.0lf",
                        "GPRINT:entropy_avg:%12s\:" % _("Average") + " %5.0lf\\n",