summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-12-04 15:03:42 +0100
committerGitHub <noreply@github.com>2017-12-04 15:03:42 +0100
commitd2bbfa507786c1707e057312a729a942f51d362d (patch)
tree777c5b9dd97f255ba622dea1ece1737f3e982fa6 /modules/luci-mod-admin-full/luasrc/view
parent802d5b6becf829975e5e129657b9e63a6590b87c (diff)
parent2c2e7f5cbbef4c04efca562b51f8ff4ca483a14d (diff)
Merge pull request #1459 from brianjmurrell/patch-1
Fix bad argument #1 to 'tonumber'
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/view')
-rw-r--r--modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm2
1 files changed, 1 insertions, 1 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 d29a894276..5979210e2f 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
@@ -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