Update my email addresses in the license headers
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / iptables.lua
1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 module("luci.statistics.rrdtool.definitions.iptables", package.seeall)
5
6 function rrdargs( graph, plugin, plugin_instance, dtype )
7
8         return {
9                 {
10                         title = "%H: Firewall: Processed bytes in %pi",
11                         vlabel = "Bytes/s",
12                         number_format = "%5.0lf%sB/s",
13                         totals_format = "%5.0lf%sB",
14                         data = { 
15                                 types = { "ipt_bytes" },
16                                 options = {
17                                         ipt_bytes = {
18                                                 total = true,
19                                                 title = "%di"
20                                         }
21                                 }
22                         }
23                 },
24
25                 {
26                         title = "%H: Firewall: Processed packets in %pi",
27                         vlabel = "Packets/s",
28                         number_format = "%5.1lf P/s",
29                         totals_format = "%5.0lf%s",
30                         data = {
31                                 types = { "ipt_packets" },
32                                 options = {
33                                         ipt_packets = {
34                                                 total = true,
35                                                 title = "%di"
36                                         }
37                                 }
38                         }
39                 }
40         }
41 end