69a3a87eb78e3cd6db35052365b1d6fbdd3fef1a
[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: _('Firewall'),
8
9         rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
10                 return [{
11                         title: "%H: Firewall: Processed bytes in %pi",
12                         vlabel: "Bytes/s",
13                         number_format: "%5.1lf%sB/s",
14                         totals_format: "%5.1lf%sB",
15                         data: {
16                                 types: [ "ipt_bytes" ],
17                                 options: {
18                                         ipt_bytes: {
19                                                 total: true,
20                                                 title: "%di"
21                                         }
22                                 }
23                         }
24                 }, {
25                         title: "%H: Firewall: Processed packets in %pi",
26                         vlabel: "Packets/s",
27                         number_format: "%5.1lf P/s",
28                         totals_format: "%5.1lf%s",
29                         data: {
30                                 types: [ "ipt_packets" ],
31                                 options: {
32                                         ipt_packets: {
33                                                 total: true,
34                                                 title: "%di"
35                                         }
36                                 }
37                         }
38                 }];
39         }
40 });
git clone https://git.99rst.org/PROJECT