summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/luasrc/controller
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-15 23:46:20 +0000
committerSteven Barth <steven@midlink.org>2008-09-15 23:46:20 +0000
commitcbb0bead6fe87a99f77e0597733dcac453d08097 (patch)
tree04c80d079e662c569187dc7b26ea546e8a60892d /applications/luci-statistics/luasrc/controller
parente8375042814c6334b7506fd81dcecb040fd638db (diff)
Fixed statistics
Diffstat (limited to 'applications/luci-statistics/luasrc/controller')
-rw-r--r--applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
index 53ce34ec3b..7ca8a5aa37 100644
--- a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
+++ b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
@@ -151,7 +151,7 @@ function statistics_render()
local vars = luci.http.formvalue()
local req = luci.dispatcher.context.request
- local path = luci.dispatcher.context.dispatched.path
+ local path = luci.dispatcher.context.path
local uci = luci.model.uci.cursor()
local spans = luci.util.split( uci:get( "luci_statistics", "collectd_rrdtool", "RRATimespans" ), "%s+", nil, true )
local span = vars.timespan or uci:get( "luci_statistics", "rrdtool", "default_timespan" ) or spans[1]
@@ -161,10 +161,10 @@ function statistics_render()
local images = { }
-- find requested plugin and instance
- for i, p in ipairs( luci.dispatcher.context.dispatched.path ) do
- if luci.dispatcher.context.dispatched.path[i] == "graph" then
- plugin = luci.dispatcher.context.dispatched.path[i+1]
- instances = { luci.dispatcher.context.dispatched.path[i+2] }
+ for i, p in ipairs( luci.dispatcher.context.path ) do
+ if luci.dispatcher.context.path[i] == "graph" then
+ plugin = luci.dispatcher.context.path[i+1]
+ instances = { luci.dispatcher.context.path[i+2] }
end
end