luci-app-statistics: set shortest period data/graph to 2 hours

Change the shortest defined statistics period from 1 hour to 2 hours.

In practice, this only changes the graph for the shortest period
to show 2 hours of data instead of 1 hour.

The underlying database is not changed:
there are currently 288 data items for each period,
so with the 30 seconds default step, the shortest data series
contains 288 x 0.5 min = 144 min > 2 hours of data.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
Hannu Nyman 2022-12-06 13:37:47 +02:00
parent 785792a591
commit 4b49b45641

View file

@ -22,7 +22,7 @@ config statistics 'collectd_rrdtool'
option DataDir '/tmp/rrd'
option RRARows '288'
option RRASingle '1'
option RRATimespans '1hour 1day 1week 1month 1year'
option RRATimespans '2hour 1day 1week 1month 1year'
config statistics 'collectd_csv'
option enable '0'