luci-app-statistics: improve scaling of the associated stations graph
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / iwinfo.lua
index 0c6eed9..194afd6 100644 (file)
@@ -1,17 +1,5 @@
---[[
-
-Luci statistics - wireless plugin diagram definition
-(c) 2011 Jo-Philipp Wich <xm@subsignal.org>
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-        http://www.apache.org/licenses/LICENSE-2.0
-
-$Id$
-
-]]--
+-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
+-- Licensed to the public under the Apache License 2.0.
 
 module("luci.statistics.rrdtool.definitions.iwinfo", package.seeall)
 
@@ -86,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" },