summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/controller/admin/status.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-11-21 19:29:47 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-11-21 19:29:47 +0000
commit69ac1031b7e83fb68ee1f6f952890fc0654f54f8 (patch)
tree4f220decbd7c7e9a796431db67079e9687dc372b /modules/admin-full/luasrc/controller/admin/status.lua
parentef8e4eb991a1b496085c57f6b8381b623311db89 (diff)
applications/luci-commands, applications/luci-upnp, modules/admin-core, modules/admin-full, modules/freifunk: clean up argument handling of leaf nodes
Diffstat (limited to 'modules/admin-full/luasrc/controller/admin/status.lua')
-rw-r--r--modules/admin-full/luasrc/controller/admin/status.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/status.lua b/modules/admin-full/luasrc/controller/admin/status.lua
index d7d301c542..a9e37c7995 100644
--- a/modules/admin-full/luasrc/controller/admin/status.lua
+++ b/modules/admin-full/luasrc/controller/admin/status.lua
@@ -71,10 +71,7 @@ function action_iptables()
end
end
-function action_bandwidth()
- local path = luci.dispatcher.context.requestpath
- local iface = path[#path]
-
+function action_bandwidth(iface)
luci.http.prepare_content("application/json")
local bwc = io.popen("luci-bwc -i %q 2>/dev/null" % iface)
@@ -92,10 +89,7 @@ function action_bandwidth()
end
end
-function action_wireless()
- local path = luci.dispatcher.context.requestpath
- local iface = path[#path]
-
+function action_wireless(iface)
luci.http.prepare_content("application/json")
local bwc = io.popen("luci-bwc -r %q 2>/dev/null" % iface)