From cca069797dca2e0a4f53fa1108d1bcbc156e934b Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sat, 15 Mar 2014 08:39:54 +0100 Subject: [PATCH] Display number of activities saved in file's header Update sadf so that it can display the total number of activities and the number of volatile activities in file. These numbers can be displayed with sadf -H. Signed-off-by: Sebastien GODARD --- sadf_misc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sadf_misc.c b/sadf_misc.c index 27f2f93..d04bb7c 100644 --- a/sadf_misc.c +++ b/sadf_misc.c @@ -643,6 +643,10 @@ __printf_funct_t print_hdr_header(int *tab, int action, char *dfile, } printf(_("Size of a long int: %d\n"), file_hdr->sa_sizeof_long); + + /* Number of activities (number of volatile activities) in file */ + printf("sa_act_nr (sa_vol_act_nr): %u (%u)\n", + file_hdr->sa_act_nr, file_hdr->sa_vol_act_nr); printf(_("List of activities:\n")); -- 2.40.0