mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Fix on bandwidth display
This commit is contained in:
parent
93839a8420
commit
ade0332999
1 changed files with 2 additions and 6 deletions
|
@ -118,12 +118,8 @@ function multipath_bandwidth()
|
||||||
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], ",")
|
||||||
for j=1,5 do
|
for j=1,5 do
|
||||||
if "string"== type(res[key][i][j]) then
|
|
||||||
res[key][i][j]= tonumber(res[key][i][j])
|
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])
|
res["total"][i][j]= tonumber(res["total"][i][j])
|
||||||
end
|
|
||||||
if j ==1 then
|
if j ==1 then
|
||||||
if res[key][i][j] ~= nil then
|
if res[key][i][j] ~= nil then
|
||||||
res["total"][i][j] = res[key][i][j]
|
res["total"][i][j] = res[key][i][j]
|
||||||
|
|
Loading…
Reference in a new issue