1 /* Licensed to the public under the Apache License 2.0. */
6 return L.Class.extend({
7 title: _('CPU Frequency'),
9 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
11 title: "%H: Processor frequency - core %pi",
13 vlabel: "Frequency (Hz)",
14 number_format: "%3.2lf%s",
18 cpufreq: { color: "ff0000", title: "Frequency" },
23 if (uci.get("luci_statistics", "collectd_cpufreq", "ExtraItems")) {
25 title: "%H: Frequency transitions - core %pi",
27 vlabel: "Transitions",
28 number_format: "%3.2lf%s",
30 types: [ "transitions" ],
32 transitions: { color: "0000ff", title: "Transitions", noarea: true },
38 title: "%H: Frequency distribution - core %pi",
41 number_format: "%5.2lf%%",
46 percent: { title: "%di kHz", negweight: true },
51 return [ cpufreq, percentage, transitions ];