summaryrefslogtreecommitdiff
path: root/stat.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-11-30 16:06:22 -0700
committerJens Axboe <axboe@fb.com>2015-11-30 16:06:22 -0700
commitde5cdfea341ffb027d6c2e9ebc147145c3c23372 (patch)
tree8444cb3eb9eedd3476baddedfa75bd804154b565 /stat.h
parent210dd0fc66b8956065e098bb9314febe8993e849 (diff)
downloadfio-de5cdfea341ffb027d6c2e9ebc147145c3c23372.tar.gz
fio-de5cdfea341ffb027d6c2e9ebc147145c3c23372.tar.bz2
stat: use DDIR_RWDIR_CNT instead of hardwired '3'
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/stat.h b/stat.h
index 02835112..42649438 100644
--- a/stat.h
+++ b/stat.h
@@ -183,9 +183,9 @@ struct thread_stat {
uint32_t io_u_plat[DDIR_RWDIR_CNT][FIO_IO_U_PLAT_NR];
uint32_t pad;
- uint64_t total_io_u[3];
- uint64_t short_io_u[3];
- uint64_t drop_io_u[3];
+ uint64_t total_io_u[DDIR_RWDIR_CNT];
+ uint64_t short_io_u[DDIR_RWDIR_CNT];
+ uint64_t drop_io_u[DDIR_RWDIR_CNT];
uint64_t total_submit;
uint64_t total_complete;