1 /* Licensed to the public under the Apache License 2.0. */
7 return baseclass.extend({
8 title: _('CPU Frequency'),
10 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
12 title: "%H: Processor frequency - core %pi",
14 vlabel: "Frequency (Hz)",
15 number_format: "%3.2lf%s",
19 cpufreq: { color: "ff0000", title: "Frequency" },
24 if (uci.get("luci_statistics", "collectd_cpufreq", "ExtraItems")) {
27 title: "%H: Frequency transitions - core %pi",
31 vlabel: "Transitions",
32 number_format: "%3.2lf%s",
34 types: [ "transitions" ],
36 transitions: { color: "0000ff", title: "Transitions", noarea: true },
43 title: "%H: Frequency distribution - core %pi",
46 number_format: "%5.2lf%%",
51 percent: { title: "%di kHz", negweight: true },
56 return [ cpufreq, percentage, transitions ];