luci_statistics: Add y_min, y_max, units_exponent options and clean up some graphs
[project/luci.git] / applications / luci-statistics / luasrc / statistics / rrdtool / definitions / nut.lua
index 4072d4d..69f1ae3 100644 (file)
@@ -53,6 +53,8 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
        local percentage = {
                title = "%H: Battery charge on UPS \"%pi\"",
                vlabel = "Percent",
+               y_min = "0",
+               y_max = "100",
                number_format = "%5.1lf%%",
                data = {
                        sources = {