1 /* Licensed to the public under the Apache License 2.0. */
7 return baseclass
.extend({
10 rrdargs: function(graph
, host
, plugin
, plugin_instance
, dtype
) {
13 var title
= "%H: Processor usage";
15 if (plugin_instance
!= '')
16 title
= "%H: Processor usage on core #%pi";
18 if (uci
.get("luci_statistics", "collectd_cpu", "ReportByState") == "1") {
22 alt_autoscale_max
: true,
24 number_format
: "%5.1lf",
78 alt_autoscale_max
: true,
80 number_format
: "%5.1lf%%",
131 var types
= graph
.dataTypes(host
, plugin
, plugin_instance
);
133 for (var i
= 0; i
< types
.length
; i
++)
134 if (types
[i
] == 'cpu')
136 else if (types
[i
] == 'percent')
143 alt_autoscale_max
: true,
145 number_format
: "%5.1lf%%",