luci-mod-admin-full: improve Y-axis scaling in bandwidth graph
authorJo-Philipp Wich <jo@mein.io>
Tue, 3 Jul 2018 08:56:50 +0000 (10:56 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 3 Jul 2018 08:58:14 +0000 (10:58 +0200)
commit7b43e67219a7d7204bd006b5a7cb8b72d07f156c
tree1bfd0889e4841ab4241d133a25f46e0c1d1650f1
parent9f2672f2cc0f07ef9ea431bd9294036df2bed7c9
luci-mod-admin-full: improve Y-axis scaling in bandwidth graph

Calculate a peak that causes the vertical scale to use even values.

Fixes #1424.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/view/admin_status/bandwidth.htm