* Merged Luci to use native UCI-library
[project/luci.git] / applications / luci-statistics / luasrc / statistics / rrdtool.lua
index 35f5c87..69fb5cf 100644 (file)
@@ -31,8 +31,8 @@ function Graph.__init__( self, timespan, opts )
 
        opts = opts or { }
 
-       local uci = luci.model.uci.Session()
-       local sections = uci:sections( "luci_statistics" )
+       local uci = luci.model.uci
+       local sections = uci.get_all( "luci_statistics" )
 
        -- helper classes
        self.colors = luci.statistics.rrdtool.colors.Instance()