]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stats: compute the color code only in the HTML form
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Jan 2016 15:51:35 +0000 (16:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Mar 2016 16:08:05 +0000 (17:08 +0100)
commit0c378efe8118a9508e21c91accc7af13bd2b699f
treedae137ea6a4b0465d739a79f6270eba72dd59dab
parente4847c640508f836259aaf417c81ca7fa4d2fe69
MEDIUM: stats: compute the color code only in the HTML form

The color code requires a complex logic, and we use it only in the
HTML part. So let's compute it there based on the server state, its
health and its weight. The thing is tricky but OK. There's a 1-to-1
mapping of down servers, but not of up servers, hence the need for
the weight and health.
src/dumpstats.c