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

Fix MPTCP graph

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-09-16 17:14:40 +02:00
parent 928d122e77
commit 0009dac3a4

View file

@ -98,7 +98,11 @@ function multipath_bandwidth()
res[key][1]=temp1[1] res[key][1]=temp1[1]
for i=2,60 do for i=2,60 do
res[key][i]={} res[key][i]={}
if temp1[i] ~= "" and temp1[i] ~= nil then
res[key][i]=(string.gsub(temp1[i], "%[", " ")) res[key][i]=(string.gsub(temp1[i], "%[", " "))
else
res[key][i]="0,0,0,0,0"
end
end end
for i=1,60 do for i=1,60 do
res[key][i] = string.split(res[key][i], ",") res[key][i] = string.split(res[key][i], ",")