diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-09-22 14:48:01 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2020-09-22 14:48:01 +0200 |
commit | ab5b05dc2587323b6df971d9d6cf23844132571a (patch) | |
tree | 7ccd2fc67c5ce5740512b9736322c23ff332a645 /applications/luci-app-mwan3/luasrc | |
parent | 4f6c054d7a468b980538461ede1da40789af4d46 (diff) |
luci-app-mwan3: fixing reliability check if value is not configured
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3/luasrc')
-rw-r--r-- | applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua index dad709ede..d9d21b9ec 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua @@ -99,7 +99,7 @@ function configCheck() if trackingNumber and #trackingNumber > 0 then overview[iface]["tracking"] = #trackingNumber overview[iface]["reliability"] = false - local reliabilityNumber = tonumber(uci:get("mwan3", iface, "reliability")) + local reliabilityNumber = tonumber(uci:get("mwan3", iface, "reliability") or "1") if reliabilityNumber and reliabilityNumber <= #trackingNumber then overview[iface]["reliability"] = true end |