4e130704aab6959ea1290eea7a5c0ec62ffda001
1 /* Licensed to the public under the Apache License 2.0. */
6 return L
.Class
.extend({
9 rrdargs: function(graph
, host
, plugin
, plugin_instance
, dtype
) {
12 var title
= "%H: Processor usage";
14 if (plugin_instance
!= '')
15 title
= "%H: Processor usage on core #%pi";
17 if (uci
.get("luci_statistics", "collectd_cpu", "ReportByState") == "1") {
21 alt_autoscale_max
: true,
23 number_format
: "%5.1lf",
77 alt_autoscale_max
: true,
79 number_format
: "%5.1lf%%",
130 var types
= graph
.dataTypes(host
, plugin
, plugin_instance
);
132 for (var i
= 0; i
< types
.length
; i
++)
133 if (types
[i
] == 'cpu')
135 else if (types
[i
] == 'percent')
142 alt_autoscale_max
: true,
144 number_format
: "%5.1lf%%",