]> granicus.if.org Git - sysstat/commitdiff
Fix typos in comments
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 12 Feb 2022 16:49:56 +0000 (17:49 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 12 Feb 2022 16:49:56 +0000 (17:49 +0100)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
pcp_def_metrics.c
raw_stats.c
sa_common.c

index 65d7c0522e44bba57ca735f74fa1492680b157c0..2e1eedb8132044a1a4e86ecd6fe8334c93f6ca77 100644 (file)
@@ -144,7 +144,7 @@ void pcp_def_cpu_metrics(struct activity *a)
                        }
 
                        else if (a->id == A_NET_SOFT) {
-                               /* Create metrics for a_NET_SOFT */
+                               /* Create metrics for A_NET_SOFT */
                                pmiAddMetric("network.softnet.processed",
                                             pmiID(60, 57, 0), PM_TYPE_U64, PM_INDOM_NULL, PM_SEM_COUNTER,
                                             pmiUnits(0, 0, 1, 0, 0, PM_COUNT_ONE));
index bafabb119e187e9e8df3ca98be63e53ccb1fe6ff..878b5a785b9ba97fceac98e912d1891de45e2407 100644 (file)
@@ -277,7 +277,7 @@ __print_funct_t raw_print_irq_stats(struct activity *a, char *timestr, int curr)
                printf("%s; %s; %s;", timestr,
                       pfield(a->hdr_line, FIRST), stc_cpuall_irq->irq_name);
 
-               /* In reaw mode, offline CPU (in datafile) are always displayed */
+               /* In raw mode, offline CPU (in datafile) are always displayed */
                for (c = 0; (c < a->nr[curr]) && (c < a->bitmap->b_size + 1); c++) {
 
                        stc_cpu_irq = (struct stats_irq *) ((char *) a->buf[curr] + c * a->msize * a->nr2
index d3bdc6d7c0ad3d01f3cfc0d9ee7f5bf478b801fd..ff8a49dd125573ba9c32c49456b77e62159c3701 100644 (file)
@@ -3230,7 +3230,7 @@ void get_global_soft_statistics(struct activity *a, int prev, int curr,
 
                /*
                 * The size of a->buf[...] CPU structure may be different from the default
-                * sizeof(struct stats_pwr_cpufreq) value if data have been read from a file!
+                * sizeof(struct stats_softnet) value if data have been read from a file!
                 * That's why we don't use a syntax like:
                 * ssnc = (struct stats_softnet *) a->buf[...] + i;
                  */