From: Sebastien GODARD Date: Mon, 6 Aug 2018 15:20:06 +0000 (+0200) Subject: sar: Fix wrong size for huge pages statistics structure X-Git-Tag: v12.1.1~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2f9d1693d02037b21450a0d43fb27f6b53a86fd;p=sysstat sar: Fix wrong size for huge pages statistics structure Oopss... Fix wrong size for stats_huge structure. This would be laughable if it was not a (really) nasty bug... :-( Signed-off-by: Sebastien GODARD --- diff --git a/rd_stats.h b/rd_stats.h index b24276f..7e2326a 100644 --- a/rd_stats.h +++ b/rd_stats.h @@ -613,7 +613,7 @@ struct stats_huge { unsigned long long tlhkb; }; -#define STATS_HUGE_SIZE (sizeof(struct stats_memory)) +#define STATS_HUGE_SIZE (sizeof(struct stats_huge)) #define STATS_HUGE_ULL 2 #define STATS_HUGE_UL 0 #define STATS_HUGE_U 0