From a8346e375fd39afba251c9258108e9e80784da20 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Mon, 12 Oct 2020 20:47:53 +0200 Subject: [PATCH] Try to fix mptcp graph --- luci-app-mptcp/luasrc/controller/mptcp.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/luci-app-mptcp/luasrc/controller/mptcp.lua b/luci-app-mptcp/luasrc/controller/mptcp.lua index d40078b17..fb69ac06b 100644 --- a/luci-app-mptcp/luasrc/controller/mptcp.lua +++ b/luci-app-mptcp/luasrc/controller/mptcp.lua @@ -100,7 +100,9 @@ function multipath_bandwidth() res[key][1]=temp1[1] for i=2,60 do res[key][i]={} - res[key][i]=(string.gsub(temp1[i], "%[", " ")) + if temp1[i] ~= nil then + res[key][i]=(string.gsub(temp1[i], "%[", " ")) + end end for i=1,60 do res[key][i] = string.split(res[key][i], ",")