]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: stats: fix misleading comment on top of stat_idx_info
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Nov 2024 17:07:14 +0000 (18:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Nov 2024 17:35:42 +0000 (18:35 +0100)
The comment asks to update the "metrics_info" array, which does not
exist, instead it's called stat_cols_info[] and is in stats.c. Let's
mention all that to save time searching for the needed info.

While no version seems to have ever known that "metrics_info", it's not
needed to backport this as it's only a comment.

include/haproxy/stats-t.h

index b9df6c824daa3e5d3b56cb1ccf72ffe859413138..3af6719d48ad86b34a7b41dc6b42132d41577e3f 100644 (file)
@@ -253,9 +253,9 @@ enum field_scope {
 };
 
 /* Show info columns for CLI output. For any column added here, please add the
- * text representation in the metrics_info array. Please only append at the end,
- * before the ST_I_INF_MAX entry, and never insert anything in the middle
- * nor at the beginning.
+ * text representation in the stat_cols_info[] array in stats.c. Please only
+ * append at the end, before the ST_I_INF_MAX entry, and never insert anything
+ * in the middle nor at the beginning.
  */
 enum stat_idx_info {
        ST_I_INF_NAME,