MINOR: stats: support clear counters for dynamic stats
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 5 Oct 2020 09:49:43 +0000 (11:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 5 Oct 2020 10:02:14 +0000 (12:02 +0200)
commitd3700a7fda41015ede66c6b46865c17778f08171
treebac8541d430f9e57be558c1f9b3b02bdb49ddf3d
parentee63d4bd6743fee650c4483e3de6daa2c589822e
MINOR: stats: support clear counters for dynamic stats

Add a boolean 'clearable' on stats module structure. If set, it forces
all the counters to be reset on 'clear counters' cli command. If not,
the counters are reset only when 'clear counters all' is used.
include/haproxy/stats-t.h
src/stats.c