luci-app-statistics: option for max/avg data when not rrasingle
authorHannu Nyman <hannu.nyman@iki.fi>
Thu, 12 May 2016 07:26:59 +0000 (10:26 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Thu, 12 May 2016 07:26:59 +0000 (10:26 +0300)
commitb213573682460dd395878c7369aba173f00bbb99
tree0f6f67342b8ead10e308a91f45f1595fef912bcc
parent0c09e4e23f25d95bd3ab2d94a2c84f94f4bcc297
luci-app-statistics: option for max/avg data when not rrasingle

Introduce option that enables the user to select max values
instead of averages for graphs if the user has disabled RRAsingle.

The option defaults to average values, which have been the default
in Luci statistics.

Remove 'optional' from RRASingle, as it is a key option for statistics.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua
applications/luci-app-statistics/luasrc/statistics/rrdtool.lua