commit | 0c378efe8118a9508e21c91accc7af13bd2b699f | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Jan 08 16:51:35 2016 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Mar 11 17:08:05 2016 +0100 |
tree | dae137ea6a4b0465d739a79f6270eba72dd59dab | |
parent | e4847c640508f836259aaf417c81ca7fa4d2fe69 [diff] |
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.