From 5675183c24ccb22f3572e4bf76763cb3a37a395d Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Fri, 26 Apr 2019 12:15:10 +0200 Subject: [PATCH] Cosmetic changes in code Signed-off-by: Sebastien GODARD --- sa.h | 5 +++++ sadc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sa.h b/sa.h index 82bc500..583b367 100644 --- a/sa.h +++ b/sa.h @@ -386,8 +386,13 @@ struct svg_hdr_parm { * * If the record header's type is R_COMMENT then we find only a comment * following the record_header structure. + * * If the record_header's type is R_RESTART then we find only the number of CPU * (of type __nr_t) of the machine following the record_header structure. + * This number is 1 for 1 CPU and not an SMP kernel (CPU "all"), + * 2 for 1 CPU and SMP kernel (CPU "all" and CPU 0), etc. + * Of course we display the real number of CPU (e.g. "1" for 1 CPU and SMP + * kernel) with the LINUX RESTART message. *************************************************************************** */ diff --git a/sadc.c b/sadc.c index 557a8e7..0ad225d 100644 --- a/sadc.c +++ b/sadc.c @@ -921,7 +921,7 @@ void open_ofile(int *ofd, char ofile[], int restart_mark) } if ((file_act[i].has_nr && (act[p]->f_count_index < 0)) || - (!file_act[i].has_nr && (act[p]->f_count_index >=0))) { + (!file_act[i].has_nr && (act[p]->f_count_index >= 0))) { #ifdef DEBUG fprintf(stderr, "%s: %s: has_nr=%d count_index=%d\n", __FUNCTION__, act[p]->name, file_act[i].has_nr, act[p]->f_count_index); -- 2.40.0