X-Git-Url: http://git.ipfire.org/?p=collecty.git;a=blobdiff_plain;f=src%2Fcollecty%2Fplugins%2Fcontextswitches.py;h=c1299aa812baa34839fdf511a584b8c6b01b91e6;hp=18fa4d80636d214f2e2d540f298fd63009d612d3;hb=03ba56309b43e6c599193059cdcd4bf11d926782;hpb=76c12e91c228aeb4a6bb8d3f3d5b49282628c148 diff --git a/src/collecty/plugins/contextswitches.py b/src/collecty/plugins/contextswitches.py index 18fa4d8..c1299aa 100644 --- a/src/collecty/plugins/contextswitches.py +++ b/src/collecty/plugins/contextswitches.py @@ -23,6 +23,7 @@ import re from . import base +from ..colours import * from ..i18n import _ class GraphTemplateContextSwitches(base.GraphTemplate): @@ -33,10 +34,14 @@ class GraphTemplateContextSwitches(base.GraphTemplate): _ = self.locale.translate return [ - "AREA:ctxt#90EE90:%-15s" % _("Context Switches"), + "AREA:ctxt%s:%-15s" % ( + util.lighten(PRIMARY, AREA_OPACITY), + _("Context Switches"), + ), "GPRINT:ctxt_max:%12s\:" % _("Maximum") + " %6.2lf" , "GPRINT:ctxt_min:%12s\:" % _("Minimum") + " %6.2lf" , "GPRINT:ctxt_avg:%12s\:" % _("Average") + " %6.2lf\\n", + "LINE1:ctxt%s" % PRIMARY, ] lower_limit = 0