From 166cf0d7420755471667ceb294c5c7b8368d262c Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Sun, 9 Jun 2024 10:08:14 -0700 Subject: [PATCH] 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 --- files/www/cgi-bin/iperf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/files/www/cgi-bin/iperf b/files/www/cgi-bin/iperf index 76b9f73d..989b283f 100755 --- a/files/www/cgi-bin/iperf +++ b/files/www/cgi-bin/iperf @@ -114,8 +114,15 @@ else break end print("SUCCESS") + print("
Client: " .. node .. "\nServer: " .. server)
                     io.flush()
-                    print("
Client: " .. node .. "\nServer: " .. server .. "\n" .. running:read("*a") .. "
") + for line in running:lines() + do + print(line) + io.flush() + end + running:close() + print("
") break end end