]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: stats: dump the frontend's HTML stats via a generic function
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Jan 2016 16:15:39 +0000 (17:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Mar 2016 16:08:05 +0000 (17:08 +0100)
commitb5f66b8138275597b3df2da8ec9332b9f948fc21
tree780ee2c2187563854d807daddb540267071b39cb
parent7101b64cfda8bb26b0bcc7eb96c7712e52be5bcd
REORG: stats: dump the frontend's HTML stats via a generic function

This new function stats_dump_fields_html() checks the type of the object
being dumped from the stats table, and emits it in HTML format. It uses
an argument indicating if the HTML page is also used as an admin page,
and for now still takes the proxy in argument as a few entries still
need it.

The code was simply moved as-is to the new function. There's no
functional change.
src/dumpstats.c