]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stats: fix inversion of failed header rewrites and other statuses
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Dec 2018 12:48:44 +0000 (13:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Dec 2018 12:48:44 +0000 (13:48 +0100)
The tooltip in the HTML stats page was damaged by commit 1b0f85e47 ("MINOR:
stats: also report the failed header rewrites warnings on the stats page"),
due to the header rewrites counter being inserted at the wrong place and
taking the place of the other statuses.

This is only for 1.9, no backport is needed.

src/stats.c

index 76561ef930a963aec8de97ce045cd7e4f7b69e72..823502ff36f502a02c096e69c4bdd83c0a8ac69c 100644 (file)
@@ -1214,8 +1214,8 @@ static int stats_dump_fields_html(struct buffer *out,
                                      U2H(stats[ST_F_HRSP_3XX].u.u64),
                                      U2H(stats[ST_F_HRSP_4XX].u.u64),
                                      U2H(stats[ST_F_HRSP_5XX].u.u64),
-                                     U2H(stats[ST_F_WREW].u.u64),
-                                     U2H(stats[ST_F_HRSP_OTHER].u.u64));
+                                     U2H(stats[ST_F_HRSP_OTHER].u.u64),
+                                     U2H(stats[ST_F_WREW].u.u64));
                }
 
                chunk_appendf(out, "<tr><th>- Queue time:</th><td>%s</td><td>ms</td></tr>",   U2H(stats[ST_F_QTIME].u.u32));