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>
Sat, 21 May 2016 08:12:45 +0000 (11:12 +0300)
commit84083ce54d6d67569d82c26955627bb1f41a05ff
tree35aa821c5360a15a64e5331e65d7978672a35ad9
parentd2054da3a207333a8da63897ccbbbc709298c629
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>
(cherry picked from commit b213573682460dd395878c7369aba173f00bbb99)
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua
applications/luci-app-statistics/luasrc/statistics/rrdtool.lua