Skip to content

Commit 1f34a0f

Browse files
committed
CLEANUP: stats: fix misleading comment on top of stat_idx_info
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.
1 parent 3b851a3 commit 1f34a0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/haproxy/stats-t.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ enum field_scope {
253253
};
254254

255255
/* Show info columns for CLI output. For any column added here, please add the
256-
* text representation in the metrics_info array. Please only append at the end,
257-
* before the ST_I_INF_MAX entry, and never insert anything in the middle
258-
* nor at the beginning.
256+
* text representation in the stat_cols_info[] array in stats.c. Please only
257+
* append at the end, before the ST_I_INF_MAX entry, and never insert anything
258+
* in the middle nor at the beginning.
259259
*/
260260
enum stat_idx_info {
261261
ST_I_INF_NAME,

0 commit comments

Comments
 (0)