]> git.ipfire.org Git - collecty.git/blobdiff - src/collecty/plugins/contextswitches.py
Add some magic to collecty that makes the graph templates smaller
[collecty.git] / src / collecty / plugins / contextswitches.py
index f9194a09483a37cde82e946f2ce2f5423ec10272..18fa4d80636d214f2e2d540f298fd63009d612d3 100644 (file)
@@ -33,15 +33,10 @@ class GraphTemplateContextSwitches(base.GraphTemplate):
                _ = self.locale.translate
 
                return [
-                       "DEF:ctxt=%(file)s:ctxt:AVERAGE",
-
                        "AREA:ctxt#90EE90:%-15s" % _("Context Switches"),
-                       "VDEF:ctxtmax=ctxt,MAXIMUM",
-                       "VDEF:ctxtmin=ctxt,MINIMUM",
-                       "VDEF:ctxtavg=ctxt,AVERAGE",
-                       "GPRINT:ctxtmax:%12s\:" % _("Maximum") + " %6.2lf" ,
-                       "GPRINT:ctxtmin:%12s\:" % _("Minimum") + " %6.2lf" ,
-                       "GPRINT:ctxtavg:%12s\:" % _("Average") + " %6.2lf\\n",
+                       "GPRINT:ctxt_max:%12s\:" % _("Maximum") + " %6.2lf" ,
+                       "GPRINT:ctxt_min:%12s\:" % _("Minimum") + " %6.2lf" ,
+                       "GPRINT:ctxt_avg:%12s\:" % _("Average") + " %6.2lf\\n",
                ]
 
        lower_limit = 0