Merge pull request #5072 from ajmckinley/fix-statistics-hostname

luci-app-statistics: fix read of hostname
This commit is contained in:
Jo-Philipp Wich 2021-05-31 13:46:40 +02:00 committed by GitHub
commit cbeb6ce92a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ return view.extend({
o.load = function() { o.load = function() {
return fs.trimmed('/proc/sys/kernel/hostname').then(L.bind(function(name) { return fs.trimmed('/proc/sys/kernel/hostname').then(L.bind(function(name) {
this.placeholder = name; this.placeholder = name;
return uci.get('collectd', 'statistics', 'hostname'); return uci.get('luci_statistics', 'collectd', 'Hostname');
}, this)); }, this));
}; };