From d591c431ba373c27e28a86a053052dbf0da22e52 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 22 Jan 2024 15:30:38 +0100 Subject: [PATCH] cpu plugin: Fix function comment. Co-authored-by: Eero Tamminen --- src/cpu.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/cpu.c b/src/cpu.c index 6566f620b..74203571c 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -648,11 +648,10 @@ static void commit_usage(usage_t *u) { } /* Commits (dispatches) the values for one CPU or the global aggregation. - * cpu_num is the index of the CPU to be committed or -1 in case of the global - * aggregation. rates is a pointer to STATE_MAX gauge_t values - * holding the - * current rate; each rate may be NAN. Calculates the percentage of each state - * and dispatches the metric. */ + * cpu_num is the index of the CPU to be committed or CPU_ALL in case of the + * global aggregation. rates is a pointer to STATE_MAX gauge_t values holding + * the current rate; each rate may be NAN. Calculates the percentage of each + * state and dispatches the metric. */ static void commit_cpu_utilization(usage_t *u, size_t cpu_num) { metric_family_t fam = { .name = "system.cpu.utilization", -- 2.47.2