Merge pull request #485 from dwmw2/master
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 22 Sep 2015 20:18:16 +0000 (22:18 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 22 Sep 2015 20:18:16 +0000 (22:18 +0200)
luci/statistics: Fix nut UPS graphs

applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua

index 6dc81bc..8b04ab8 100644 (file)
@@ -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" }
                        },