]> granicus.if.org Git - sysstat/commitdiff
Fix commit 3ab10c8
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 6 Feb 2022 17:01:12 +0000 (18:01 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 6 Feb 2022 17:01:12 +0000 (18:01 +0100)
I shouldn't have deleted this line :-(

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sa_common.c

index 2046d17eb09794806ba7cbb3f9202012b8becff0..1b06d4092822189bf3a9841d4ae69d137f3d4d3b 100644 (file)
@@ -2995,6 +2995,7 @@ int print_special_record(struct record_header *record_hdr, uint64_t l_flags,
                 */
                for (p = 0; p < NR_ACT; p++) {
                        if (HAS_PERSISTENT_VALUES(act[p]->options) && (act[p]->nr_ini > 0)) {
+                               act[p]->nr_ini = file_hdr->sa_cpu_nr;
                                if (act[p]->nr_ini > act[p]->nr_allocated) {
                                        reallocate_all_buffers(act[p], act[p]->nr_ini);
                                }