MEDIUM: stats: expose the same flags for CLI and HTTP accesses
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Jan 2016 14:33:18 +0000 (15:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Mar 2016 16:08:05 +0000 (17:08 +0100)
commit0deb85acd1ef242f145629c60a5fdc32aabb255e
treeae9396be1ae7a3b505fabcf784ff07e8d237e9e3
parent89fa6918c493d0df69a8c2764e08282f91aa8e82
MEDIUM: stats: expose the same flags for CLI and HTTP accesses

The HTML dump over HTTP request may have several flags including
ST_SHLGNDS (to show legends), ST_SHNODE (to show node name),
ST_SHDESC (to show some descriptions).

There's no such thing over the CLI so we need to have an equivalent.
Let's compute the flags earlier so that we can make use of these flags
regardless of the call point.
src/dumpstats.c