]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
cpu plugin: Fix function comment. 4216/head
authorFlorian Forster <ff@octo.it>
Mon, 22 Jan 2024 14:30:38 +0000 (15:30 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 22 Jan 2024 15:07:57 +0000 (16:07 +0100)
Co-authored-by: Eero Tamminen <eero.t.tamminen@intel.com>
src/cpu.c

index 6566f620b4f0f79cfd9a385c89e11ee7a8cf595c..74203571ce5e674a67da059855d5f85ac1355040 100644 (file)
--- 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",