From: Olivier Houchard Date: Tue, 17 Oct 2017 17:23:25 +0000 (+0200) Subject: BUG/MINOR: stats: Clear a bit more counters with in cli_parse_clear_counters(). X-Git-Tag: v1.8-dev3~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00bc3cb59f61638ee48cbca126016bc20abee47f;p=thirdparty%2Fhaproxy.git BUG/MINOR: stats: Clear a bit more counters with in cli_parse_clear_counters(). Clear MaxSslRate, SslFrontendMaxKeyRate and SslBackendMaxKeyRate when clear counters is used, it was probably forgotten when those counters were added. [wt: this can probably be backported as far as 1.5 in dumpstats.c] --- diff --git a/src/stats.c b/src/stats.c index 6cbda22f1c..25d6e65ff8 100644 --- a/src/stats.c +++ b/src/stats.c @@ -3579,6 +3579,9 @@ static int cli_parse_clear_counters(char **args, struct appctx *appctx, void *pr global.cps_max = 0; global.sps_max = 0; + global.ssl_max = 0; + global.ssl_fe_keys_max = 0; + global.ssl_be_keys_max = 0; return 1; }