MEDIUM: stats: make stats_dump_li_stats() use stats fields for HTML dump
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Jan 2016 14:49:26 +0000 (15:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Mar 2016 16:08:04 +0000 (17:08 +0100)
commitf7e27230bda2d5b3d014b4767ca47cb50f1d4692
tree715c733ee41f0de30881bebb5b69ecc7954f8482
parent4607fadb99eff59634690ebf6db822faf3900a6a
MEDIUM: stats: make stats_dump_li_stats() use stats fields for HTML dump

The conversion still requires some elements which are not present in the
current fields :
  - the HTML status may emit "WAITING"/"OPEN"/"FULL" while the CSV format
    doesn't propose "WAITING", so this last one will have to be added.

  - the HTML output emits the listening adresses when the ST_SHLGNDS flag
    is set but this address field doesn't exist in the CSV format

  - it's interesting to note that when the ST_SHLGNDS flag is not set, the
    HTML output doesn't provide the listener's ID while it's present in the
    CSV output accessible from the same interface.
src/dumpstats.c