Graph the max value rather than avg if rrdsingle disabled
authorKevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Thu, 31 Dec 2015 18:00:55 +0000 (18:00 +0000)
committerHannu Nyman <hannu.nyman@iki.fi>
Sat, 21 May 2016 08:12:35 +0000 (11:12 +0300)
commitd2054da3a207333a8da63897ccbbbc709298c629
tree3c32fcd86d530247ea67f52fa0637dc873ccdee6
parenta0f22fdec9e5c3534cd13a0ccb2ae6ea555816d9
Graph the max value rather than avg if rrdsingle disabled

With rrdsingle the average values are used for graphing. As the
timescale increases (say over a day or month) the average values
progressively reduce.  Using the maximum value over the longer periods
is arguably no less deceptive but it does produce more informative
graphs.

V2 - Invert the default path logic related to rra.single

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
(cherry picked from commit f960a5286896aacbd95a7b95aa367d1584106b2b)
applications/luci-app-statistics/luasrc/statistics/rrdtool.lua