]> git.99rst.org Git - openwrt-luci.git/blob
f3af09895d750c821c1975356c909a212958e654
[openwrt-luci.git] /
1 /* Licensed to the public under the Apache License 2.0. */
2
3 'use strict';
4 'require baseclass';
5
6 return baseclass.extend({
7 title: _('System Load'),
8
9 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
10 return {
11 title: "%H: Load",
12 vlabel: "Load",
13 y_min: "0",
14 y_max: "0.2",
15 units_exponent: "0",
16 number_format: "%5.2lf",
17 data: {
18 sources: {
19 load: [ "shortterm", "midterm", "longterm" ]
20 },
21
22 options: {
23 load__shortterm: {
24 color: "ff0000",
25 title: "1 minute",
26 noarea: true,
27 weight: 3
28 },
29 load__midterm: {
30 color: "ff6600",
31 title: "5 minutes",
32 overlay: true,
33 weight: 1
34 },
35 load__longterm: {
36 color: "ffaa00",
37 title: "15 minutes",
38 overlay: true,
39 weight: 2
40 }
41 }
42 }
43 };
44 }
45 });
git clone https://git.99rst.org/PROJECT