a10469110077a0a69194236a5f7b3d05d1763777
[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", vlabel: "Load",
12                         y_min: "0",
13                         units_exponent: "0",
14                         number_format: "%5.2lf", data: {
15                                 sources: {
16                                         load: [ "shortterm", "midterm", "longterm" ]
17                                 },
18
19                                 options: {
20                                         load__shortterm: {
21                                                 color: "ff0000",
22                                                 title: "1 minute",
23                                                 noarea: true,
24                                                 weight: 3
25                                         },
26                                         load__midterm: {
27                                                 color: "ff6600",
28                                                 title: "5 minutes",
29                                                 overlay: true,
30                                                 weight: 1
31                                         },
32                                         load__longterm: {
33                                                 color: "ffaa00",
34                                                 title: "15 minutes",
35                                                 overlay: true,
36                                                 weight: 2
37                                         }
38                                 }
39                         }
40                 };
41         }
42 });
git clone https://git.99rst.org/PROJECT