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> (cherry picked from commit 97424d57af1d0e02ea914012c47987541d7ee6a6)
This commit is contained in:
parent
904fb39c31
commit
54b2195dcf
@ -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));
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user