1 -- Licensed to the public under the Apache License 2.0.
3 module("luci.statistics.rrdtool.definitions.cpufreq",package.seeall)
5 local uci = require("luci.model.uci").cursor()
6 local extraitems = uci:get("luci_statistics", "collectd_cpufreq", "ExtraItems") or nil
9 return luci.i18n.translate("CPU Frequency")
12 function rrdargs( graph, plugin, plugin_instance, dtype )
15 title = "%H: Processor frequency - core %pi",
17 vlabel = "Frequency (Hz)",
18 number_format = "%3.2lf%s",
22 cpufreq = { color = "ff0000", title = "Frequency" },
30 title = "%H: Frequency transitions - core %pi",
32 vlabel = "Transitions",
33 number_format = "%3.2lf%s",
35 types = { "transitions" },
37 transitions = { color = "0000ff", title = "Transitions", noarea=true },
43 title = "%H: Frequency distribution - core %pi",
45 vlabel = "Frequency (Hz)",
46 number_format = "%5.2lf%%",
48 types = { "percent" },
50 percent = { title = "Frequency %di" },
55 return { cpufreq, transitions, percentage }