projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
applications/luci-commands, applications/luci-upnp, modules/admin-core, modules/admin...
[project/luci.git]
/
modules
/
admin-full
/
luasrc
/
controller
/
admin
/
status.lua
diff --git
a/modules/admin-full/luasrc/controller/admin/status.lua
b/modules/admin-full/luasrc/controller/admin/status.lua
index
d7d301c
..
a9e37c7
100644
(file)
--- 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
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)
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
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)
luci.http.prepare_content("application/json")
local bwc = io.popen("luci-bwc -r %q 2>/dev/null" % iface)