UCI API changes
[project/luci.git] / applications / luci-statistics / luasrc / statistics / rrdtool.lua
index 4335245..23e0170 100644 (file)
@@ -31,8 +31,8 @@ function Graph.__init__( self, timespan, opts )
 
        opts = opts or { }
 
-       local uci = luci.model.uci
-       local sections = uci.get_all( "luci_statistics" )
+       local uci = luci.model.uci.cursor()
+       local sections = uci:get_all( "luci_statistics" )
 
        -- helper classes
        self.colors = luci.statistics.rrdtool.colors.Instance()