1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00

Remove getting speed from SQM

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-11-26 16:28:21 +01:00 committed by suyuan
parent 2420f841fe
commit c180f6f3a3

View file

@ -737,15 +737,15 @@
local upload = "0" local upload = "0"
download = uci:get("network",ifname,"downloadspeed") or "0" download = uci:get("network",ifname,"downloadspeed") or "0"
upload = uci:get("network",ifname,"uploadspeed") or "0" upload = uci:get("network",ifname,"uploadspeed") or "0"
if download == "0" or upload == "0" 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")
else -- else
download = uci:get("qos",ifname,"download") -- download = uci:get("qos",ifname,"download")
upload = uci:get("qos",ifname,"upload") -- upload = uci:get("qos",ifname,"upload")
end -- end
end --end
%> %>
<div class="cbi-value" data-index="14"> <div class="cbi-value" data-index="14">
<label class="cbi-value-title"><%:MPTCP over VPN%></label> <label class="cbi-value-title"><%:MPTCP over VPN%></label>