From 77f8074a01277917ab9ab0d00778f59bb0a88817 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 3 Jun 2008 22:42:01 +0000 Subject: make use of the new features in the binding for uci v0.4.0 - fixes remaining dependencies of libuci.lua on the cli --- applications/luci-statistics/luasrc/statistics/datatree.lua | 2 +- applications/luci-statistics/luasrc/statistics/rrdtool.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'applications/luci-statistics/luasrc') diff --git a/applications/luci-statistics/luasrc/statistics/datatree.lua b/applications/luci-statistics/luasrc/statistics/datatree.lua index e3c9e34bbc..ba6d7740b1 100644 --- a/applications/luci-statistics/luasrc/statistics/datatree.lua +++ b/applications/luci-statistics/luasrc/statistics/datatree.lua @@ -4,7 +4,7 @@ local util = require("luci.util") local sys = require("luci.sys") local fs = require("luci.fs") local uci = require("luci.model.uci").Session() -local sections, names = uci:sections( "luci_statistics" ) +local sections = uci:sections( "luci_statistics" ) Instance = util.class() diff --git a/applications/luci-statistics/luasrc/statistics/rrdtool.lua b/applications/luci-statistics/luasrc/statistics/rrdtool.lua index c2ac7a8e64..5f07a41ff4 100644 --- a/applications/luci-statistics/luasrc/statistics/rrdtool.lua +++ b/applications/luci-statistics/luasrc/statistics/rrdtool.lua @@ -17,7 +17,7 @@ function Graph.__init__( self, timespan, opts ) opts = opts or { } local uci = luci.model.uci.Session() - local sections, names = uci:sections( "luci_statistics" ) + local sections = uci:sections( "luci_statistics" ) -- helper classes self.colors = luci.statistics.rrdtool.colors.Instance() -- cgit v1.2.3