]> granicus.if.org Git - sysstat/commitdiff
rd_stats.h: Reorder fields in stats_disk structure
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 1 Dec 2018 08:05:17 +0000 (09:05 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 1 Dec 2018 08:05:17 +0000 (09:05 +0100)
New field dc_ticks must be added *after* all other fields of same type
("unsigned int" here). This is compulsory to make older versions of
sar/sadf able to read this structure.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
rd_stats.h

index 737199092b5901bacc9a1cdbfeaf03713d64a986..07b853c4f790bdf18e9051d8fc2975217be8c4ff 100644 (file)
@@ -264,11 +264,11 @@ struct stats_disk {
        unsigned long      dc_sect      __attribute__ ((aligned (8)));
        unsigned int       rd_ticks     __attribute__ ((aligned (8)));
        unsigned int       wr_ticks;
-       unsigned int       dc_ticks;
        unsigned int       tot_ticks;
        unsigned int       rq_ticks;
        unsigned int       major;
        unsigned int       minor;
+       unsigned int       dc_ticks;
 };
 
 #define STATS_DISK_SIZE        (sizeof(struct stats_disk))