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",
29 vlabel: "Transitions",
30 number_format: "%3.2lf%s",
32 types: [ "transitions" ],
34 transitions: { color: "0000ff", title: "Transitions", noarea: true },
41 title: "%H: Frequency distribution - core %pi",
44 number_format: "%5.2lf%%",
49 percent: { title: "%di kHz", negweight: true },
54 return [ cpufreq, percentage, transitions ];