BUG/MINOR: stats: fix lastchk metric that got accidently lost
authorWilly Tarreau <w@1wt.eu>
Wed, 12 May 2021 15:29:14 +0000 (17:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 May 2021 15:50:16 +0000 (17:50 +0200)
commit973a937c5f0bf479037cea60594538aa1fde5fb6
tree9bf1492a8651cfabf30efa8571c896b937de63cf
parent4263f68b653d52cb62446d9694f284b8a44abaaf
BUG/MINOR: stats: fix lastchk metric that got accidently lost

Commit d3a9a4992 ("MEDIUM: stats: allow to select one field in
`stats_fill_sv_stats`") left one occurrence of a direct assignment
of stats[] instead of placing it into the <metric> variable, and it
was on ST_F_CHECK_STATUS. This resulted in the field being overwritten
with an empty one immediately after being set in stats_fill_sv_stats()
and the field to appear empty on the stats page.

No backport is needed as this was only for 2.4.
src/stats.c