Graph the max value rather than avg if rrdsingle disabled 721/head
authorKevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Thu, 31 Dec 2015 18:00:55 +0000 (18:00 +0000)
committerKevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Wed, 11 May 2016 12:41:54 +0000 (13:41 +0100)
commitf960a5286896aacbd95a7b95aa367d1584106b2b
tree9f0fd896c556ed6ba223d298bd63197ed95f996e
parent650c0314a60d97b818de1ac73345c49e41602759
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>
applications/luci-app-statistics/luasrc/statistics/rrdtool.lua