luci-app-statistics: Adjust UI defaults to match config file
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 13 Dec 2020 09:09:33 +0000 (11:09 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 13 Dec 2020 09:23:09 +0000 (11:23 +0200)
commitf7e5b56649c8b7599e27db09652e9cb3083d2108
treea79c6fa7597edda9b0175fd74a78dbfa94f00bcb
parentc052818ee981fdadd268cbac78ef3ae55bc55b1a
luci-app-statistics: Adjust UI defaults to match config file

Adjust the defaults shown in the LuCI user interface to match
the real default values in the default config file.

(If a plugin is disabled and config values get deleted from
the config file, user has been offered incorrect default
values from UI defaults when the plugin is later re-enabled.)

* dns: set br-lan as the interface
* email: socket in /var/run/collectd/ dir
* interface: set br-lan as the interface
* ping: TTL 127, interval 30
* rrdtool: 1hour as shortest period, 144 RRArows
* tcpconns: Do not monitor all, only 22 80
* unixsock: socket in /var/run/collectd/ dir

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/dns.js
applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/email.js
applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/interface.js
applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ping.js
applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js
applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/tcpconns.js
applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/unixsock.js