MEDIUM: stats: make the HTML server state dump use the CSV states
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Jan 2016 13:57:09 +0000 (14:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Mar 2016 16:08:05 +0000 (17:08 +0100)
commit30d33730f4abd6601d3714533a375edfdb319ec0
tree99ec90bcf64e273e6c1387019bcc8b0e8c54d2ec
parent3141f5975e7221d3b0c076c21bd951971cf3053c
MEDIUM: stats: make the HTML server state dump use the CSV states

Now instead of recomputing the state based on the health, rise etc,
we reuse the same state as in the CSV file, and optionally complete
it with a down or an up arrow if a change is occurring. We could
have parsed the strings to detect a '/' indicating a state change,
but it was easier to check the health against rise and fall.
src/dumpstats.c