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

Fix on bandwidth display

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-03-15 15:41:27 +01:00
parent 93839a8420
commit ade0332999

View file

@ -118,12 +118,8 @@ function multipath_bandwidth()
for i=1,60 do
res[key][i] = string.split(res[key][i], ",")
for j=1,5 do
if "string"== type(res[key][i][j]) then
res[key][i][j]= tonumber(res[key][i][j])
end
if "string"==type(res["total"][i][j]) then
res["total"][i][j]= tonumber(res["total"][i][j])
end
res[key][i][j]= tonumber(res[key][i][j])
res["total"][i][j]= tonumber(res["total"][i][j])
if j ==1 then
if res[key][i][j] ~= nil then
res["total"][i][j] = res[key][i][j]