BUG/MINOR: stats: Apply proper styles in HTML status page.
authorFlorian Apolloner <florian@apolloner.eu>
Tue, 30 Mar 2021 11:28:35 +0000 (13:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 30 Mar 2021 16:07:49 +0000 (18:07 +0200)
commit4253ce683402dfbcc6f08b60e42803aafe13147b
tree928292a85c727d47bd800d873dbea5c48590a0bf
parent0e2cf434cae546fd20073f3999ed5a195f54503d
BUG/MINOR: stats: Apply proper styles in HTML status page.

When a backend is in status DOWN and going UP it is currently displayed
as yellow ("active UP, going down") instead of orange ("active DOWN, going
UP"). This patches restyles the table rows to actually match the
legend.

This may be backported to any version, the issue appeared in 1.7-dev2
with commit 0c378efe8 ("MEDIUM: stats: compute the color code only in
the HTML form").

(cherry picked from commit 39272c28bffcf57c050703b356c9381df454dea7)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/stats.c