luci-app-statistics: standardise newline usage
[project/luci.git] / applications / luci-app-statistics / htdocs / luci-static / resources / statistics / rrdtool / definitions / load.js
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 units_exponent: "0",
15 number_format: "%5.2lf",
16 data: {
17 sources: {
18 load: [ "shortterm", "midterm", "longterm" ]
19 },
20
21 options: {
22 load__shortterm: {
23 color: "ff0000",
24 title: "1 minute",
25 noarea: true,
26 weight: 3
27 },
28 load__midterm: {
29 color: "ff6600",
30 title: "5 minutes",
31 overlay: true,
32 weight: 1
33 },
34 load__longterm: {
35 color: "ffaa00",
36 title: "15 minutes",
37 overlay: true,
38 weight: 2
39 }
40 }
41 }
42 };
43 }
44 });