mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-23 11:51:00 +01:00
MINOR: stats: make CSV report server check status only when enabled
The HTML version doesn't report a check status when the server is in maintenance since it can be quite old and irrelevant. The CSV forgot to care about that, so let's do it here as well.
This commit is contained in:
parent
8485f4e43b
commit
8a8cce1f87
@ -3729,7 +3729,7 @@ static int stats_dump_sv_stats(struct stream_interface *si, struct proxy *px, in
|
||||
stats[ST_F_RATE] = mkf_u32(FN_RATE, read_freq_ctr(&sv->sess_per_sec));
|
||||
stats[ST_F_RATE_MAX] = mkf_u32(FN_MAX, sv->counters.sps_max);
|
||||
|
||||
if (sv->check.state & CHK_ST_ENABLED) {
|
||||
if ((sv->check.state & (CHK_ST_ENABLED|CHK_ST_PAUSED)) == CHK_ST_ENABLED) {
|
||||
const char *fld_chksts;
|
||||
|
||||
fld_chksts = chunk_newstr(out);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user