luci-app-statistics: improve scaling of the associated stations graph
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 25 Oct 2015 08:11:35 +0000 (10:11 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Mon, 26 Oct 2015 09:47:08 +0000 (11:47 +0200)
Improve scaling of the associated stations graph on the wireless page.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit dccf4859221c79718f08eeb085aefa866492427c)

applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua

index 3ca3381ec4c4ce86b4cb50b73ba4aa15023cca08..194afd6fc0f9c4e9f2500667f1bfdc0b332be4c3 100644 (file)
@@ -74,6 +74,8 @@ function rrdargs( graph, plugin, plugin_instance )
        local stations = {
                title = "%H: Associated stations on %pi",
                vlabel = "Stations",
+               y_min = "0",
+               alt_autoscale_max = true,
                number_format = "%3.0lf",
                data = {
                        types = { "stations" },