From ade033299944d9b5efbb4d04745ab5050f8b115a Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Mon, 15 Mar 2021 15:41:27 +0100 Subject: [PATCH] Fix on bandwidth display --- luci-app-mptcp/luasrc/controller/mptcp.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/luci-app-mptcp/luasrc/controller/mptcp.lua b/luci-app-mptcp/luasrc/controller/mptcp.lua index eb84bc718..53ead344f 100644 --- a/luci-app-mptcp/luasrc/controller/mptcp.lua +++ b/luci-app-mptcp/luasrc/controller/mptcp.lua @@ -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]