MEDIUM: stats: Separate server state and colour in stats
authorSimon Horman <horms@verge.net.au>
Thu, 23 Apr 2015 05:51:27 +0000 (14:51 +0900)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2015 07:57:51 +0000 (09:57 +0200)
commit837bfa74dba61914b44c120d6a2ce731f8138b3e
tree1a15ff455323185440d03171a72ec4cbc1b328d7
parent4d2eab61d4b468231e63f4f00ad0afb695f53185
MEDIUM: stats: Separate server state and colour in stats

There is a relationship between the state and colour of a server in
stats, however, it is not a one-to-one relationship and the current
implementation has proved fragile.

This patch attempts to address that problem by clearly separating
state and colour.

A follow-up patch will further distinguish between DRAIN states
and DRAINING colours.

Signed-off-by: Simon Horman <horms@verge.net.au>
src/dumpstats.c