From ab5b05dc2587323b6df971d9d6cf23844132571a Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 22 Sep 2020 14:48:01 +0200 Subject: [PATCH] luci-app-mwan3: fixing reliability check if value is not configured Signed-off-by: Florian Eckert --- applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 dad709ede9..d9d21b9ec0 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