diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-11-21 19:29:47 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-11-21 19:29:47 +0000 |
commit | 69ac1031b7e83fb68ee1f6f952890fc0654f54f8 (patch) | |
tree | 4f220decbd7c7e9a796431db67079e9687dc372b /modules/admin-full/luasrc/controller/admin/status.lua | |
parent | ef8e4eb991a1b496085c57f6b8381b623311db89 (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.lua | 10 |
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) |