MEDIUM: stats: move the server state coloring logic to the server dump function
authorWilly Tarreau <w@1wt.eu>
Thu, 7 Jan 2016 08:54:40 +0000 (09:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Mar 2016 16:08:04 +0000 (17:08 +0100)
commitba2f2649c2f373c4955000a2b077679d3822779a
tree62ab65150e4ed7fb587c84438fac98818da92261
parent164d4a9e73042cad5928532cf5ca877a247ecf71
MEDIUM: stats: move the server state coloring logic to the server dump function

It currently is really not convenient to have a state and a color detection
outside of the function and to use these ones inside. It makes it harder to
adjust the stats output based on the server state exactly. Let's move the
logic into the dump function itself.
src/dumpstats.c