mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-21 17:33:25 +02:00
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.
This commit is contained in:
committed by
Christopher Faulet
parent
ee63d4bd67
commit
d3700a7fda
@@ -477,6 +477,7 @@ struct stats_module {
|
||||
size_t counters_size; /* sizeof counters */
|
||||
|
||||
uint32_t domain_flags; /* stats application domain for this module */
|
||||
char clearable; /* reset on a clear counters */
|
||||
};
|
||||
|
||||
struct extra_counters {
|
||||
|
||||
Reference in New Issue
Block a user