Merge pull request #1459 from brianjmurrell/patch-1
Fix bad argument #1 to 'tonumber'
This commit is contained in:
commit
d2bbfa5077
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue