summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-livestats/luasrc/controller/livestats.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-10-18 21:51:44 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-10-18 21:51:44 +0000
commite39b2bff3f01f299201d6c394cbeb7e28e852758 (patch)
tree7df1567cb16ca486a442bd6df408dae913ad3e4a /applications/luci-livestats/luasrc/controller/livestats.lua
parent758c06df583f439f625d5a62688d291654234e5b (diff)
* luci/applications: add experimental realtime statistics
Diffstat (limited to 'applications/luci-livestats/luasrc/controller/livestats.lua')
-rw-r--r--applications/luci-livestats/luasrc/controller/livestats.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/applications/luci-livestats/luasrc/controller/livestats.lua b/applications/luci-livestats/luasrc/controller/livestats.lua
new file mode 100644
index 000000000..4494bbd4b
--- /dev/null
+++ b/applications/luci-livestats/luasrc/controller/livestats.lua
@@ -0,0 +1,25 @@
+--[[
+LuCI - Lua Configuration Interface
+
+Copyright 2008 Steven Barth <steven@midlink.org>
+Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+$Id: openvpn.lua 3549 2008-10-09 22:24:21Z jow $
+]]--
+
+module("luci.controller.livestats", package.seeall)
+
+function index()
+ require("luci.i18n")
+ luci.i18n.loadc("livestats")
+
+ entry( {"admin", "status", "wifistat"}, template("livestats/wireless"), luci.i18n.translate("livestat_wireless", "Live Wireless Statistics") ).i18n = "livestat"
+ entry( {"admin", "status", "trafstat"}, template("livestats/traffic"), luci.i18n.translate("livestat_traffic", "Live Traffic Statistics") ).i18n = "livestat"
+ entry( {"admin", "status", "loadavg"}, template("livestats/loadavg"), luci.i18n.translate("livestat_loadavg", "Live Load Statistics") ).i18n = "livestat"
+end