projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git
a/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua
b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua
index
4072d4d
..
69f1ae3
100644
(file)
--- 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 = {