diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-04-03 21:01:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-03 21:01:08 +0200 |
commit | d679b93bad9ce0ee529b78c791de39a751a78006 (patch) | |
tree | ff77ef7b25712715e8cb5bcab0a8334c1f19d2a6 /applications/luci-app-statistics/luasrc/statistics/rrdtool.lua | |
parent | a483a8d05b39a2f12a764f7d625933cae2bd92f5 (diff) | |
parent | 05f0649716ccf209ab14a569e49dd8dcefcc04c6 (diff) |
Merge pull request #2618 from TDT-AG/pr/20199397-luci-app-statistics
luci-app-statistics: enhancements
Diffstat (limited to 'applications/luci-app-statistics/luasrc/statistics/rrdtool.lua')
-rw-r--r-- | applications/luci-app-statistics/luasrc/statistics/rrdtool.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua index b9f48a45bd..f827e92309 100644 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua @@ -26,6 +26,7 @@ function Graph.__init__( self, timespan, opts ) opts.rramax = opts.rramax or ( sections.collectd_rrdtool.RRAMax == "1" ) opts.host = opts.host or sections.collectd.Hostname or sys.hostname() opts.width = opts.width or sections.rrdtool.image_width or 400 + opts.height = opts.height or sections.rrdtool.image_height or 100 opts.rrdpath = opts.rrdpath or sections.collectd_rrdtool.DataDir or "/tmp/rrd" opts.imgpath = opts.imgpath or sections.rrdtool.image_path or "/tmp/rrdimg" opts.rrdpath = opts.rrdpath:gsub("/$","") @@ -40,7 +41,8 @@ function Graph.__init__( self, timespan, opts ) self.args = { "-a", "PNG", "-s", "NOW-" .. opts.timespan, - "-w", opts.width + "-w", opts.width, + "-h", opts.height } -- store options |