Merge pull request #1459 from brianjmurrell/patch-1

Fix bad argument #1 to 'tonumber'
This commit is contained in:
Jo-Philipp Wich 2017-12-04 15:03:42 +01:00 committed by GitHub
commit d2bbfa5077
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@
local wan6 = ntm:get_wan6net()
local conn_count = tonumber(
fs.readfile("/proc/sys/net/netfilter/nf_conntrack_count")) or 0
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