1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
Ycarus 2019-03-23 23:17:16 +01:00
parent 677a7dfc47
commit 26b738a8de

View file

@ -290,11 +290,11 @@ end
</div> </div>
</div> </div>
<% <%
local download = "" local download = "0"
local upload = "" local upload = "0"
download = uci:get("network",ifname,"downloadspeed") download = uci:get("network",ifname,"downloadspeed") or "0"
upload = uci:get("network",ifname,"uploadspeed") upload = uci:get("network",ifname,"uploadspeed") or "0"
if download == "" or upload == "" then if download == "0" or upload == "0" then
if nixio.fs.access("/etc/init.d/sqm") then if nixio.fs.access("/etc/init.d/sqm") then
download = uci:get("sqm",ifname,"download") download = uci:get("sqm",ifname,"download")
upload = uci:get("sqm",ifname,"upload") upload = uci:get("sqm",ifname,"upload")