mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 06:22:49 +04:00
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>
This commit is contained in:
@@ -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" }
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user