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>
Sun, 25 Oct 2015 08:11:35 +0000 (10:11 +0200)
Improve scaling of the associated stations graph on the wireless page.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua

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