diff --git a/luci-app-mptcp/luasrc/controller/mptcp.lua b/luci-app-mptcp/luasrc/controller/mptcp.lua index 986cb9725..d40078b17 100644 --- a/luci-app-mptcp/luasrc/controller/mptcp.lua +++ b/luci-app-mptcp/luasrc/controller/mptcp.lua @@ -71,12 +71,13 @@ function multipath_bandwidth() multipath = "off" end if multipath == "on" or multipath == "master" or multipath == "backup" or multipath == "handover" then + local bwc = luci.sys.exec("luci-bwc -i %q 2>/dev/null" % dev) or "" local bwc = luci.sys.exec("luci-bwc -i %q 2>/dev/null" % dev) or "" if bwc ~= nil then --result[dev] = "[" .. string.gsub(bwc, '[\r\n]', '') .. "]" result[intname] = "[" .. string.gsub(bwc, '[\r\n]', '') .. "]" else - result[dev] = "[]" + result[intname] = "[]" end end end diff --git a/luci-app-mptcp/luasrc/view/mptcp/multipath.htm b/luci-app-mptcp/luasrc/view/mptcp/multipath.htm index 5df6ddd81..827412292 100644 --- a/luci-app-mptcp/luasrc/view/mptcp/multipath.htm +++ b/luci-app-mptcp/luasrc/view/mptcp/multipath.htm @@ -190,13 +190,6 @@ height = dnsvg.offsetHeight - 2; data_wanted = Math.ceil(width / step); - /* prefill datasets - for (var i = 0; i < data_wanted; i++) - { - data_tx[i] = 0; - } - */ - /* find svg elements */ labeldn_25 = Gdn.getElementById('label_25'); labeldn_50 = Gdn.getElementById('label_50');