luci-mod-status: fix average calculations
authorJo-Philipp Wich <jo@mein.io>
Sat, 17 Nov 2018 13:54:43 +0000 (14:54 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 17 Nov 2018 13:57:08 +0000 (14:57 +0100)
commite5f9e3ff25418f4bea774a9bc748d24020725483
tree790eac1834ee665cb5beb99c00df74cf8bac1ae4
parent93fdac8560f219d022f22784b43dced05f86210d
luci-mod-status: fix average calculations

Calculate the average over the actual data and not over the entire timeframe.

Fixes #2301
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-status/luasrc/view/admin_status/bandwidth.htm
modules/luci-mod-status/luasrc/view/admin_status/connections.htm
modules/luci-mod-status/luasrc/view/admin_status/load.htm
modules/luci-mod-status/luasrc/view/admin_status/wireless.htm