diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-10-18 21:51:44 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-10-18 21:51:44 +0000 |
commit | e39b2bff3f01f299201d6c394cbeb7e28e852758 (patch) | |
tree | 7df1567cb16ca486a442bd6df408dae913ad3e4a /applications/luci-livestats/luasrc/controller | |
parent | 758c06df583f439f625d5a62688d291654234e5b (diff) |
* luci/applications: add experimental realtime statistics
Diffstat (limited to 'applications/luci-livestats/luasrc/controller')
-rw-r--r-- | applications/luci-livestats/luasrc/controller/livestats.lua | 25 |
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 0000000000..4494bbd4ba --- /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 |