mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-14 19:41:51 +00:00
Fix if download or upload are empty
This commit is contained in:
parent
a3a39f7011
commit
0707dc2fb1
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ function wizard_add()
|
|||
ucic:set("sqm",intf,"upload","0")
|
||||
end
|
||||
|
||||
if downloadspeed ~= "0" and uploadspeed ~= "0" then
|
||||
if downloadspeed ~= "0" and uploadspeed ~= "0" and downloadspeed ~= "" and uploadspeed ~= "" then
|
||||
ucic:set("network",intf,"downloadspeed",downloadspeed)
|
||||
ucic:set("network",intf,"uploadspeed",uploadspeed)
|
||||
ucic:set("sqm",intf,"download",math.ceil(downloadspeed*95/100))
|
||||
|
|
Loading…
Reference in a new issue