MINOR: stats: only report backend's down time if it has servers
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Jan 2016 11:04:02 +0000 (12:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Mar 2016 16:08:04 +0000 (17:08 +0100)
commit7344f4789321ef8ce2ce17cf73dabd672f7c8c69
tree286a0b9281fd06dbd7ec08bd31dbcdcea6f6b01d
parent8a8cce1f872ae06e20d7f2689b8b94549df5e53e
MINOR: stats: only report backend's down time if it has servers

There's no point in reporting a backend's up/down time if it has no
servers. The CSV output used to report "0" for a serverless backend
while the HTML version already removed the field. For servers, this
field is already omitted if checks are disabled. Let's uniformize
all of this and remove the field in CSV as well when irrelevant.
src/dumpstats.c