sadf -H now displays the last CPU count recorded in the data file. This
is the value of the last_cpu_nr field saved in file's header, giving the
number of processors the machine had when the last sample of statistics
was appended to the file.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
file_hdr->sa_nodename, file_hdr->sa_machine,
cpu_nr > 1 ? cpu_nr - 1 : 1);
+ printf(_("Number of CPU for last samples in file: %u\n"),
+ file_hdr->last_cpu_nr > 1 ? file_hdr->last_cpu_nr - 1 : 1);
+
if ((loc_t = gmtime((const time_t *) &file_hdr->sa_ust_time)) != NULL) {
printf(_("File time: "));
strftime(cur_time, sizeof(cur_time), "%T", loc_t);