]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stats: fix be/sessions/current out in typed stats
authorThierry FOURNIER <thierry.fournier@ozon.io>
Mon, 19 Dec 2016 15:50:42 +0000 (16:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2016 22:20:00 +0000 (23:20 +0100)
"scur" was typed as "limit" (FO_CONFIG) and "config value" (FN_LIMIT).
The real types of "scur" are "metric" (FO_METRIC) and "gauge"
(FN_GAUGE). FO_METRIC and FN_GAUGE are the value 0.

src/stats.c

index 976496e2819863d821f99be4840a0488a2609094..b0c0fc5bbdd027683c66dd4592a5228a14150f19 100644 (file)
@@ -1501,7 +1501,7 @@ int stats_fill_be_stats(struct proxy *px, int flags, struct field *stats, int le
        stats[ST_F_MODE]     = mkf_str(FO_CONFIG|FS_SERVICE, proxy_mode_str(px->mode));
        stats[ST_F_QCUR]     = mkf_u32(0, px->nbpend);
        stats[ST_F_QMAX]     = mkf_u32(FN_MAX, px->be_counters.nbpend_max);
-       stats[ST_F_SCUR]     = mkf_u32(FO_CONFIG|FN_LIMIT, px->beconn);
+       stats[ST_F_SCUR]     = mkf_u32(0, px->beconn);
        stats[ST_F_SMAX]     = mkf_u32(FN_MAX, px->be_counters.conn_max);
        stats[ST_F_SLIM]     = mkf_u32(FO_CONFIG|FN_LIMIT, px->fullconn);
        stats[ST_F_STOT]     = mkf_u64(FN_COUNTER, px->be_counters.cum_conn);