applications/luci-splash: cope with non-numeric (invalid) limit_up & limit_down values in luci-splash cli
This commit is contained in:
parent
ceb49b0390
commit
e648e1a45f
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ function main(argv)
|
||||||
local cmd = argv[1]
|
local cmd = argv[1]
|
||||||
local arg = argv[2]
|
local arg = argv[2]
|
||||||
|
|
||||||
limit_up = tonumber(uci:get("luci_splash", "general", "limit_up") or 0)
|
limit_up = tonumber(uci:get("luci_splash", "general", "limit_up")) or 0
|
||||||
limit_down = tonumber(uci:get("luci_splash", "general", "limit_down") or 0)
|
limit_down = tonumber(uci:get("luci_splash", "general", "limit_down")) or 0
|
||||||
|
|
||||||
uci:foreach("luci_splash", "iface", function(s)
|
uci:foreach("luci_splash", "iface", function(s)
|
||||||
if s.network then
|
if s.network then
|
||||||
|
|
Loading…
Reference in a new issue