Merge pull request #5072 from ajmckinley/fix-statistics-hostname
authorJo-Philipp Wich <jo@mein.io>
Mon, 31 May 2021 11:46:40 +0000 (13:46 +0200)
committerGitHub <noreply@github.com>
Mon, 31 May 2021 11:46:40 +0000 (13:46 +0200)
luci-app-statistics: fix read of hostname

applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/collectd.js

index 282b867c4d2678d67b68f4ebd0194c61a40b8c6b..6c2d5ffa467930258d2fade2cb7f78a39b6929a4 100644 (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));
                };