diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-12-14 21:53:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-12-14 21:53:03 +0000 |
commit | 99a8b2826e15c08972dc34170f70b40abba5922e (patch) | |
tree | 08f49b4b8d2c3507fc55f9867526152b3116265b /applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua | |
parent | ac472f9ebc5ae0b92cec8b619a5b3f2c4a3fc5c1 (diff) |
luci_statistics: Add y_min, y_max, units_exponent options and clean up some graphs
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua')
-rw-r--r-- | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua index 4072d4db14..69f1ae305c 100644 --- a/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua +++ b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua @@ -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 = { |