diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2015-09-17 11:35:38 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2015-09-22 21:15:50 +0100 |
commit | 41ec4c68adf7e6545aa10b359fea1883bec79b3e (patch) | |
tree | 25dd098134dc49faddc5fcc51d5ca805e0a75a7a /applications/luci-app-statistics/luasrc/statistics | |
parent | 13f3ad96358a36ed65bef0afbc1009545f080eaf (diff) |
luci/statistics: Fix nut UPS graphs
At some point since I last checked, the nut plugin for collectd changed the
names of the timeleft and percent datasets. Update the luci module to match
so that those graphs are generated correctly again.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'applications/luci-app-statistics/luasrc/statistics')
-rw-r--r-- | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua index 6dc81bc1d..8b04ab8b3 100644 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua @@ -44,9 +44,6 @@ function rrdargs( graph, plugin, plugin_instance, dtype ) y_max = "100", number_format = "%5.1lf%%", data = { - sources = { - percent = { "percent" } - }, instances = { percent = "charge" }, @@ -77,9 +74,6 @@ function rrdargs( graph, plugin, plugin_instance, dtype ) vlabel = "Minutes", number_format = "%.1lfm", data = { - sources = { - timeleft = { "timeleft" } - }, instances = { timeleft = { "battery" } }, |