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.
This commit is contained in:
Willy Tarreau 2024-11-06 18:07:14 +01:00
parent 3b851a326b
commit 1f34a0fd27
1 changed files with 3 additions and 3 deletions

View File

@ -253,9 +253,9 @@ enum field_scope {
}; };
/* Show info columns for CLI output. For any column added here, please add the /* 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, * text representation in the stat_cols_info[] array in stats.c. Please only
* before the ST_I_INF_MAX entry, and never insert anything in the middle * append at the end, before the ST_I_INF_MAX entry, and never insert anything
* nor at the beginning. * in the middle nor at the beginning.
*/ */
enum stat_idx_info { enum stat_idx_info {
ST_I_INF_NAME, ST_I_INF_NAME,