]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: haload: fix display glitches by flushing stdout in summary
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 23 Jul 2026 08:31:46 +0000 (10:31 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 23 Jul 2026 13:47:07 +0000 (15:47 +0200)
Fix a bug in hld_summary() where the output stream was not explicitly
flushed after printing the periodic statistics line. This caused text
buffering issues and visual overlapping in the terminal output.

src/haload.c

index 638acdba87956594b7ea0a5e0f9a6189dd77d65c..65cf7967a7210dd0e1afc929c9c88c950ddd42f6 100644 (file)
@@ -665,6 +665,7 @@ void hld_summary(void)
                       (unsigned long long)(tot_sc[4] - prev_sc[4]));
 
        putchar('\n');
+       fflush(stdout);
 
        prev_totc = tot_conn;
        prev_totr = tot_req;