diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-11-23 00:56:49 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-11-23 00:56:49 +0000 |
commit | 4309506817979b8bf397590af45c99df0568e2ec (patch) | |
tree | fb30ad7caf4a4ace27cf9eec3569270c241c2e15 /applications/luci-statistics | |
parent | 4f7c88139693a1fc58b936b18f20672ce73c56e8 (diff) |
apps/luci-statistics: fix evaluation of RRASingle option in rrdtool backend
Diffstat (limited to 'applications/luci-statistics')
-rw-r--r-- | applications/luci-statistics/luasrc/statistics/rrdtool.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-statistics/luasrc/statistics/rrdtool.lua b/applications/luci-statistics/luasrc/statistics/rrdtool.lua index 23e017036..cf420fe6d 100644 --- a/applications/luci-statistics/luasrc/statistics/rrdtool.lua +++ b/applications/luci-statistics/luasrc/statistics/rrdtool.lua @@ -42,7 +42,7 @@ function Graph.__init__( self, timespan, opts ) -- options opts.timespan = timespan or sections.rrdtool.default_timespan or 900 - opts.rrasingle = opts.rrasingle or ( sections.collectd_rrdtool.RRASingle ~= "0" ) + opts.rrasingle = opts.rrasingle or ( sections.collectd_rrdtool.RRASingle == "1" ) opts.host = opts.host or sections.collectd.Hostname or luci.sys.hostname() opts.width = opts.width or sections.rrdtool.image_width or 400 opts.rrdpath = opts.rrdpath or sections.collectd_rrdtool.DataDir or "/tmp/rrd" |