From feead3aff7b4d5372fada081482c78d61bf1337e Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 14 Dec 2018 13:48:44 +0100 Subject: [PATCH] BUG/MINOR: stats: fix inversion of failed header rewrites and other statuses 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stats.c b/src/stats.c index 76561ef93..823502ff3 100644 --- a/src/stats.c +++ b/src/stats.c @@ -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, "- Queue time:%sms", U2H(stats[ST_F_QTIME].u.u32));