mirror of https://github.com/aredn/aredn.git
Send iperf info line by line rather than all at the end (#1240)
* Send iperf info line by line rather than all at the end * Less newlines
This commit is contained in:
parent
2f74728693
commit
166cf0d742
|
@ -114,8 +114,15 @@ else
|
|||
break
|
||||
end
|
||||
print("<html><head><title>SUCCESS</title></head>")
|
||||
print("<body><pre>Client: " .. node .. "\nServer: " .. server)
|
||||
io.flush()
|
||||
print("<body><pre>Client: " .. node .. "\nServer: " .. server .. "\n" .. running:read("*a") .. "</pre></body></html>")
|
||||
for line in running:lines()
|
||||
do
|
||||
print(line)
|
||||
io.flush()
|
||||
end
|
||||
running:close()
|
||||
print("</pre></body></html>")
|
||||
break
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue