From de5cdfea341ffb027d6c2e9ebc147145c3c23372 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 30 Nov 2015 16:06:22 -0700 Subject: [PATCH] stat: use DDIR_RWDIR_CNT instead of hardwired '3' Signed-off-by: Jens Axboe --- stat.h | 6 +++--- 1 file 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; -- 2.25.1