diff options
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js | 6 | ||||
-rw-r--r-- | applications/luci-app-statistics/root/etc/config/luci_statistics | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js index 19e34e4bc6..0e8414ff2f 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js @@ -149,9 +149,9 @@ return baseclass.extend({ hostname = data[1]; this.opts.host = uci.get('luci_statistics', 'collectd', 'Hostname') || hostname; - this.opts.timespan = uci.get('luci_statistics', 'rrdtool', 'default_timespan') || 900; - this.opts.width = uci.get('luci_statistics', 'rrdtool', 'image_width') || 400; - this.opts.height = uci.get('luci_statistics', 'rrdtool', 'image_height') || 100; + this.opts.timespan = uci.get('luci_statistics', 'rrdtool', 'default_timespan') || 3600; + this.opts.width = uci.get('luci_statistics', 'rrdtool', 'image_width') || 600; + this.opts.height = uci.get('luci_statistics', 'rrdtool', 'image_height') || 150; this.opts.rrdpath = (uci.get('luci_statistics', 'collectd_rrdtool', 'DataDir') || '/tmp/rrd').replace(/\/$/, ''); this.opts.rrasingle = (uci.get('luci_statistics', 'collectd_rrdtool', 'RRASingle') == '1'); this.opts.rramax = (uci.get('luci_statistics', 'collectd_rrdtool', 'RRAMax') == '1'); diff --git a/applications/luci-app-statistics/root/etc/config/luci_statistics b/applications/luci-app-statistics/root/etc/config/luci_statistics index 581a1f5a2c..7ed2c5c190 100644 --- a/applications/luci-app-statistics/root/etc/config/luci_statistics +++ b/applications/luci-app-statistics/root/etc/config/luci_statistics @@ -12,6 +12,7 @@ config statistics 'collectd' config statistics 'rrdtool' option default_timespan '1hour' option image_width '600' + option image_height '150' option image_path '/tmp/rrdimg' # output plugins |