]> git.99rst.org Git - openwrt-luci.git/blob
73bd16af111754f693aa3d06f15b4ae6b4e9c40f
[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: _('IP-Statistics'),
8
9 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
10
11 var traffic = {
12 title: "%H: IPv4 and IPv6 Comparison",
13 vlabel: "Bytes/s",
14 number_format: "%5.1lf%sB/s",
15 totals_format: "%5.1lf%sB",
16
17 data: {
18 sources: {
19 ip_stats_octets: [ "ip4rx", "ip4tx", "ip6rx", "ip6tx" ]
20 },
21
22 options: {
23 ip_stats_octets__ip4rx: {
24 title: "IPv4 Bytes (RX)",
25 total: true,
26 color: "00ff00"
27 },
28
29 ip_stats_octets__ip4tx: {
30 title: "IPv4 Bytes (TX)",
31 flip : true,
32 total: true,
33 color: "0000ff"
34 },
35
36 ip_stats_octets__ip6rx: {
37 title: "IPv6 Bytes (RX)",
38 total: true,
39 color: "ffff00"
40 },
41
42 ip_stats_octets__ip6tx: {
43 title: "IPv6 Bytes (TX)",
44 flip : true,
45 total: true,
46 color: "ff00ff"
47 }
48 }
49 }
50 };
51
52 return [ traffic ]
53 }
54 });
git clone https://git.99rst.org/PROJECT