From: Hannu Nyman Date: Thu, 21 May 2020 14:19:55 +0000 (+0300) Subject: luci-app-statistics: modify default amount of data items in RRD X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0c6fd62d65aa15f08d21a6a3e61b97217cfb1203;p=project%2Fluci.git luci-app-statistics: modify default amount of data items in RRD Increase the default number of data items in the RRD database from 100 to 144. That leads to better matching summarising/averaging moments between day & week and week & month at the averaging intervals: 30sec, 10min, 70 min, 5h10min, 2d13h Previous 100 led too easily to situations, where the longer period's more scarce data gets selected for displaying in the graph. That could happen if the longer period's last data point was stored more recently than the last data item in the originally required period. (E.g. if the last "week data item" was more recent than the last "day data item", the week data was used for the day chart.) (Note: this change only applies in a live router if the RRD database is empty. E.g after reboot or after emptying the RRD database dir.) Reference to discussion at #4065 Signed-off-by: Hannu Nyman (cherry picked from commit 591b918ea4e67d863c74d3d99bd5878c38d06761) --- diff --git a/applications/luci-app-statistics/root/etc/config/luci_statistics b/applications/luci-app-statistics/root/etc/config/luci_statistics index d97087d190..dc515e35cb 100644 --- a/applications/luci-app-statistics/root/etc/config/luci_statistics +++ b/applications/luci-app-statistics/root/etc/config/luci_statistics @@ -19,7 +19,7 @@ config statistics 'rrdtool' config statistics 'collectd_rrdtool' option enable '1' option DataDir '/tmp/rrd' - option RRARows '100' + option RRARows '144' option RRASingle '1' option RRATimespans '1hour 1day 1week 1month 1year'