From e39b2bff3f01f299201d6c394cbeb7e28e852758 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 18 Oct 2008 21:51:44 +0000 Subject: * luci/applications: add experimental realtime statistics --- .../luci-livestats/luasrc/controller/livestats.lua | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 applications/luci-livestats/luasrc/controller/livestats.lua (limited to 'applications/luci-livestats/luasrc/controller') 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 +Copyright 2008 Jo-Philipp Wich + +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 -- cgit v1.2.3