luci-app-statistics: fix whitespaces in rrdtool definitions
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / tcpconns.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.tcpconns", package.seeall)
5
6 function rrdargs( graph, plugin, plugin_instance, dtype )
7
8 return {
9 title = "%H: TCP connections to port %pi",
10 vlabel = "Connections/s",
11 number_format = "%5.0lf",
12 data = {
13 types = { "tcp_connections" },
14 instances = {
15 tcp_connections = {
16 "SYN_SENT", "SYN_RECV", "LISTEN", "ESTABLISHED",
17 "LAST_ACK", "TIME_WAIT", "CLOSING", "CLOSE_WAIT",
18 "CLOSED", "FIN_WAIT1", "FIN_WAIT2"
19 },
20 options = {
21 load__ESTABLISHED = { title = "%di", noarea = true }
22 }
23 }
24 }
25 }
26 end