git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
4f7c881
)
apps/luci-statistics: fix evaluation of RRASingle option in rrdtool backend
author
Jo-Philipp Wich
<redacted>
Sun, 23 Nov 2008 00:56:49 +0000
(
00:56
+0000)
committer
Jo-Philipp Wich
<redacted>
Sun, 23 Nov 2008 00:56:49 +0000
(
00:56
+0000)
applications/luci-statistics/luasrc/statistics/rrdtool.lua
patch
|
blob
|
history
diff --git
a/applications/luci-statistics/luasrc/statistics/rrdtool.lua
b/applications/luci-statistics/luasrc/statistics/rrdtool.lua
index 23e01703682945cbab96f40cefc7ae35ecef77c7..cf420fe6d0b1f8d2c6d9d8afdcd5afd09ada0468 100644
(file)
--- 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"
git clone https://git.99rst.org/PROJECT