You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.3 KiB

  1. From 81c04b246e081f33a6aefa45e91a8a4306fb8211 Mon Sep 17 00:00:00 2001
  2. From: Thierry FOURNIER <thierry.fournier@ozon.io>
  3. Date: Mon, 19 Dec 2016 16:50:42 +0100
  4. Subject: [PATCH 14/19] BUG/MINOR: stats: fix be/sessions/current out in typed
  5. stats
  6. "scur" was typed as "limit" (FO_CONFIG) and "config value" (FN_LIMIT).
  7. The real types of "scur" are "metric" (FO_METRIC) and "gauge"
  8. (FN_GAUGE). FO_METRIC and FN_GAUGE are the value 0.
  9. (cherry picked from commit 0ff98a4758a511f573e50175992984dc5a3db050)
  10. ---
  11. src/stats.c | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/src/stats.c b/src/stats.c
  14. index 8ad983d..8eef3e8 100644
  15. --- a/src/stats.c
  16. +++ b/src/stats.c
  17. @@ -1501,7 +1501,7 @@ int stats_fill_be_stats(struct proxy *px, int flags, struct field *stats, int le
  18. stats[ST_F_MODE] = mkf_str(FO_CONFIG|FS_SERVICE, proxy_mode_str(px->mode));
  19. stats[ST_F_QCUR] = mkf_u32(0, px->nbpend);
  20. stats[ST_F_QMAX] = mkf_u32(FN_MAX, px->be_counters.nbpend_max);
  21. - stats[ST_F_SCUR] = mkf_u32(FO_CONFIG|FN_LIMIT, px->beconn);
  22. + stats[ST_F_SCUR] = mkf_u32(0, px->beconn);
  23. stats[ST_F_SMAX] = mkf_u32(FN_MAX, px->be_counters.conn_max);
  24. stats[ST_F_SLIM] = mkf_u32(FO_CONFIG|FN_LIMIT, px->fullconn);
  25. stats[ST_F_STOT] = mkf_u64(FN_COUNTER, px->be_counters.cum_conn);
  26. --
  27. 2.10.2