]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
memory plugin: Add comment about the other 2 options being legacy ones.
authorEero Tamminen <eero.t.tamminen@intel.com>
Wed, 10 Jan 2024 19:08:57 +0000 (20:08 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 15 Jan 2024 14:21:58 +0000 (15:21 +0100)
src/memory.c

index 9973feb1eb1acdfe7e74a4ea6da1b29709ba4604..e0f83ed993ccb7fe117bfeab5dc3d12decf802e3 100644 (file)
@@ -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);