summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorAnderson McKinley <78775943+ajmckinley@users.noreply.github.com>2021-05-26 06:41:49 +0000
committerAnderson McKinley <coyoso@tuta.io>2021-05-26 07:01:59 +0000
commit97424d57af1d0e02ea914012c47987541d7ee6a6 (patch)
tree8c1237b1c7e54f29505f943b1b99654fa730d1d7 /applications/luci-app-statistics/htdocs/luci-static/resources
parentc082ec86aae0697c65c8cc32670cbd4558870cc7 (diff)
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 <coyoso@tuta.io>
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/collectd.js2
1 files changed, 1 insertions, 1 deletions
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));
};