diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-12-14 13:27:43 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-12-14 13:27:43 +0000 |
commit | ac472f9ebc5ae0b92cec8b619a5b3f2c4a3fc5c1 (patch) | |
tree | dd2a0cc726cab3a0eb8c14a7c3cf8ea279c009e1 /applications/luci-statistics/luasrc/statistics/rrdtool | |
parent | 1461a0dba1dc17cbae0963be3149fd1e8fe99698 (diff) |
luci-statistics: add transform_rpn option to graphs, use it for nut battery life
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'applications/luci-statistics/luasrc/statistics/rrdtool')
-rw-r--r-- | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua index 421c7a25f6..4072d4db14 100644 --- a/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua +++ b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua @@ -86,7 +86,7 @@ function rrdargs( graph, plugin, plugin_instance, dtype ) local timeleft = { title = "%H: Time left on UPS \"%pi\"", vlabel = "Minutes", - number_format = "%7lfm", + number_format = "%.1lfm", data = { sources = { timeleft = { "timeleft" } @@ -95,7 +95,7 @@ function rrdargs( graph, plugin, plugin_instance, dtype ) timeleft = { "battery" } }, options = { - timeleft_battery = { color = "0000ff", title = "Time left"} + timeleft_battery = { color = "0000ff", title = "Time left", transform_rpn = "60,/" } } } } |