Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
*
* 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.
***************************************************************************
*/
}
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);