From 97424d57af1d0e02ea914012c47987541d7ee6a6 Mon Sep 17 00:00:00 2001 From: Anderson McKinley <78775943+ajmckinley@users.noreply.github.com> Date: Wed, 26 May 2021 06:41:49 +0000 Subject: luci-app-statistics: fix read of hostname Existing javascript did not read a non-default statistics hostname due to incorrect config ids. Signed-off-by: Anderson McKinley --- .../htdocs/luci-static/resources/view/statistics/collectd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-statistics/htdocs/luci-static') diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/collectd.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/collectd.js index 282b867c4d..6c2d5ffa46 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/collectd.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/collectd.js @@ -52,7 +52,7 @@ return view.extend({ o.load = function() { return fs.trimmed('/proc/sys/kernel/hostname').then(L.bind(function(name) { this.placeholder = name; - return uci.get('collectd', 'statistics', 'hostname'); + return uci.get('luci_statistics', 'collectd', 'Hostname'); }, this)); }; -- cgit v1.2.3