cpufreq: Fix graph generation
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Dec 2015 23:04:35 +0000 (23:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Dec 2015 23:04:35 +0000 (23:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/collecty/plugins/cpufreq.py

index 8bbd1fb..e6b8647 100644 (file)
@@ -57,8 +57,8 @@ class GraphTemplateCPUFreq(base.GraphTemplate):
 
                for processor, colour in zip(self.objects, self.processor_colours):
                        rrd_graph += processor.make_rrd_defs(processor.id) + [
-                               "LINE2:%s%s:%-10s" % (processor.id, colour, processor.name),
-                               "GPRINT:%s:%%6.2lf %%sHz" % processor.id,
+                               "LINE2:%s_current%s:%-10s" % (processor.id, colour, processor.name),
+                               "GPRINT:%s_current_avg:%%6.2lf %%sHz\l" % processor.id,
                        ]
 
                return rrd_graph