From: Eero Tamminen Date: Wed, 10 Jan 2024 19:08:57 +0000 (+0100) Subject: memory plugin: Add comment about the other 2 options being legacy ones. X-Git-Tag: 6.0.0-rc0~10^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=240a855630c7b9dd925c6c2f177549389e36113d;p=thirdparty%2Fcollectd.git memory plugin: Add comment about the other 2 options being legacy ones. --- diff --git a/src/memory.c b/src/memory.c index 9973feb1e..e0f83ed99 100644 --- a/src/memory.c +++ b/src/memory.c @@ -140,6 +140,8 @@ static int memory_config(oconfig_item_t *ci) /* {{{ */ { for (int i = 0; i < ci->children_num; i++) { oconfig_item_t *child = ci->children + i; + /* "ValuesAbsolute" & "ValuesPercentage" are for compatibility with the v5 + * version */ if (strcasecmp("ReportUsage", child->key) == 0 || strcasecmp("ValuesAbsolute", child->key) == 0) cf_util_get_boolean(child, &report_usage);