mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix MPTCP display
This commit is contained in:
parent
5a64d743d1
commit
4c0649109d
2 changed files with 11 additions and 11 deletions
|
@ -209,7 +209,7 @@ end
|
|||
function mptcp_monitor_data()
|
||||
luci.http.prepare_content("text/plain")
|
||||
local fullmesh
|
||||
fullmesh = io.popen("cat /proc/net/mptcp_net/snmp")
|
||||
fullmesh = io.popen("multipath -m")
|
||||
if fullmesh:read() ~= nil then
|
||||
while true do
|
||||
local ln = fullmesh:read("*l")
|
||||
|
@ -217,16 +217,6 @@ function mptcp_monitor_data()
|
|||
luci.http.write(ln)
|
||||
luci.http.write("\n")
|
||||
end
|
||||
else
|
||||
fullmesh = io.popen("nstat -z")
|
||||
if fullmesh then
|
||||
while true do
|
||||
local ln = fullmesh:read("*l")
|
||||
if not ln then break end
|
||||
luci.http.write(ln)
|
||||
luci.http.write("\n")
|
||||
end
|
||||
end
|
||||
end
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue