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>
This commit is contained in:
Anderson McKinley 2021-05-26 06:41:49 +00:00 committed by Anderson McKinley
parent c082ec86aa
commit 97424d57af

View file

@ -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));
};