diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-02-04 19:19:44 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-02-04 19:20:32 +0100 |
commit | e6cfe35bafa779dff1b063e3ac1ae8861588ec70 (patch) | |
tree | 6cf0c0c782599f813fc9ad7cdb7d488ec9a28e9d /modules/luci-mod-admin-full | |
parent | e386d76d57f038b432d10f5caae450237b316ac1 (diff) |
luci-mod-admin-full: prevent unknown sysctl key warnings on status page
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-admin-full')
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm b/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm index ff5e26de94..5e6e494ad6 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm @@ -40,10 +40,9 @@ local conn_count = tonumber( fs.readfile("/proc/sys/net/netfilter/nf_conntrack_count") or "") or 0 - local conn_max = tonumber(( - luci.sys.exec("sysctl net.nf_conntrack_max") or - luci.sys.exec("sysctl net.ipv4.netfilter.ip_conntrack_max") or - ""):match("%d+")) or 4096 + local conn_max = tonumber(luci.sys.exec( + "sysctl -n -e net.nf_conntrack_max net.ipv4.netfilter.ip_conntrack_max" + ):match("%d+")) or 4096 local rv = { uptime = sysinfo.uptime or 0, |