]> granicus.if.org Git - sysstat/commitdiff
sar: Fix wrong size for huge pages statistics structure
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 6 Aug 2018 15:20:06 +0000 (17:20 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 6 Aug 2018 15:20:06 +0000 (17:20 +0200)
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 <sysstat@users.noreply.github.com>
rd_stats.h

index b24276f5ac8daaa864fb80ed3319ef7d375e1559..7e2326a140c28d398ffc5e6f950f0382aab1ffdc 100644 (file)
@@ -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