From: Florian Forster Date: Mon, 22 Jan 2024 14:30:38 +0000 (+0100) Subject: cpu plugin: Fix function comment. X-Git-Tag: 6.0.0-rc0~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4216%2Fhead;p=thirdparty%2Fcollectd.git cpu plugin: Fix function comment. Co-authored-by: Eero Tamminen --- 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",