From: Eero Tamminen Date: Mon, 3 Oct 2022 11:31:13 +0000 (+0300) Subject: gpu_sysman: Fix memory metric comments X-Git-Tag: 6.0.0-rc0~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eefd3e98fb74d703f026f3d9c93e10154e4bb3ef;p=thirdparty%2Fcollectd.git gpu_sysman: Fix memory metric comments Caught by Ukri. Signed-off-by: Eero Tamminen --- diff --git a/src/gpu_sysman.c b/src/gpu_sysman.c index b9e2170db..dcc86bca5 100644 --- a/src/gpu_sysman.c +++ b/src/gpu_sysman.c @@ -1099,7 +1099,7 @@ static bool gpu_mems(gpu_device_t *gpu, unsigned int cache_idx) { free_max = mem_free; } } - /* largest used amount of memory */ + /* smallest used amount of memory within interval */ mem_used = mem_size - free_max; metric.value.gauge = mem_used; metric_label_set(&metric, "function", "min"); @@ -1109,7 +1109,7 @@ static bool gpu_mems(gpu_device_t *gpu, unsigned int cache_idx) { metric_family_metric_append(&fam_ratio, metric); reported_ratio = true; } - /* smallest used amount of memory */ + /* largest used amount of memory within interval */ mem_used = mem_size - free_min; metric.value.gauge = mem_used; metric_label_set(&metric, "function", "max");