]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: introduce stats_dump_one_line() to dump one stats line
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Jan 2016 16:37:22 +0000 (17:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Mar 2016 16:08:05 +0000 (17:08 +0100)
commit501f60244f0f5c304804c6085e28d3d35b7d51a3
tree322887a373286497632635e61cb8488bd94f622a
parent5b9bdff007722b76dce0a0374580535aaec74d47
MINOR: stats: introduce stats_dump_one_line() to dump one stats line

This new function dumps the current stats line according to the
specified format (CSV or HTML for now), and returns these functions'
output code, which will serve later to indicate a failure (eg: buffer
full).

This further simplifies the code since all dumpers now just call this
function.
src/dumpstats.c