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")) {
26 title: "%H: Frequency transitions - core %pi",
28 vlabel: "Transitions",
29 number_format: "%3.2lf%s",
31 types: [ "transitions" ],
33 transitions: { color: "0000ff", title: "Transitions", noarea: true },
40 title: "%H: Frequency distribution - core %pi",
43 number_format: "%5.2lf%%",
48 percent: { title: "%di kHz", negweight: true },
53 return [ cpufreq, percentage, transitions ];