]> git.99rst.org Git - openwrt-luci.git/blob
4730adfbd8a3f42f1d31b8801eabe1f48281e308
[openwrt-luci.git] /
1 /* Licensed to the public under the Apache License 2.0. */
2
3 'use strict';
4 'require baseclass';
5 'require uci';
6
7 return baseclass.extend({
8 title: _('Chrony'),
9
10 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
11 var offset = {
12 title: "%H: Chrony - time offset",
13 vlabel: "Time offset (ms)",
14 number_format: "%9.3lf ms",
15 data: {
16 types: [ "time_offset" ],
17 options: {
18 time_offset_chrony: {
19 noarea: true,
20 overlay: true,
21 color: "ff0000",
22 title: "%di",
23 transform_rpn: "1000,*"
24 },
25 time_offset: {
26 noarea: true,
27 overlay: true,
28 title: "%di",
29 transform_rpn: "1000,*"
30 }
31 }
32 }
33 };
34
35 var stratum = {
36 title: "%H: Chrony - clock stratum",
37 vlabel: "Clock stratum",
38 number_format: "%3.1lf%S",
39 data: {
40 types: [ "clock_stratum" ],
41 options: {
42 clock_stratum_chrony: {
43 noarea: true,
44 overlay: true,
45 color: "ff0000",
46 title: "%di"
47 },
48 clock_stratum: {
49 noarea: true,
50 overlay: true,
51 title: "%di"
52 }
53 }
54 }
55 };
56
57 return [ offset, stratum ];
58
59 }
60 });
61
git clone https://git.99rst.org/PROJECT