]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stats: report the correct conn_time in backend's html output
authorWilly Tarreau <w@1wt.eu>
Sat, 1 Oct 2016 07:12:08 +0000 (09:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 1 Oct 2016 07:12:08 +0000 (09:12 +0200)
An apparent copy-paste error resulted in backend's avg connection time
to report the average queue time instead in the HTML dump. Backport to
1.6 is desired.

src/dumpstats.c

index 0a047b84bfcc4d088a6bcc29b5ac52de1938d894..fe342231f4a4e0afd3465a115271053d9c479ce3 100644 (file)
@@ -3890,7 +3890,7 @@ static int stats_dump_fields_html(struct chunk *out, const struct field *stats,
                }
 
                chunk_appendf(out, "<tr><th>- Queue time:</th><td>%s</td><td>ms</td></tr>",   U2H(stats[ST_F_QTIME].u.u32));
-               chunk_appendf(out, "<tr><th>- Connect time:</th><td>%s</td><td>ms</td></tr>", U2H(stats[ST_F_QTIME].u.u32));
+               chunk_appendf(out, "<tr><th>- Connect time:</th><td>%s</td><td>ms</td></tr>", U2H(stats[ST_F_CTIME].u.u32));
                if (strcmp(field_str(stats, ST_F_MODE), "http") == 0)
                        chunk_appendf(out, "<tr><th>- Response time:</th><td>%s</td><td>ms</td></tr>", U2H(stats[ST_F_RTIME].u.u32));
                chunk_appendf(out, "<tr><th>- Total time:</th><td>%s</td><td>ms</td></tr>",   U2H(stats[ST_F_TTIME].u.u32));