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>
(cherry picked from commit 41ec4c68ad)
This commit is contained in:
David Woodhouse 2015-09-17 11:35:38 +01:00
parent 30f6fe82af
commit 75327e3c35

View file

@ -44,9 +44,6 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
y_max = "100", y_max = "100",
number_format = "%5.1lf%%", number_format = "%5.1lf%%",
data = { data = {
sources = {
percent = { "percent" }
},
instances = { instances = {
percent = "charge" percent = "charge"
}, },
@ -77,9 +74,6 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
vlabel = "Minutes", vlabel = "Minutes",
number_format = "%.1lfm", number_format = "%.1lfm",
data = { data = {
sources = {
timeleft = { "timeleft" }
},
instances = { instances = {
timeleft = { "battery" } timeleft = { "battery" }
}, },