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

Fix MPTCP bandwidth when no data

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-10-19 16:18:36 +02:00
parent 9b91c5024e
commit 1c38d61897

View file

@ -114,9 +114,15 @@ function multipath_bandwidth()
res["total"][i][j]= tonumber(res["total"][i][j])
end
if j ==1 then
res["total"][i][j] = res[key][i][j]
if res[key][i][j] ~= nil then
res["total"][i][j] = res[key][i][j]
else
res["total"][i][j] = 0
end
else
res["total"][i][j] = res["total"][i][j] + res[key][i][j]
if res[key][i][j] ~= nil then
res["total"][i][j] = res["total"][i][j] + res[key][i][j]
end
end
end
end