summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorVincent Fu <Vincent.Fu@sandisk.com>2017-04-16 15:04:27 -0400
committerJens Axboe <axboe@fb.com>2017-05-03 08:49:37 -0600
commitd279fccc5e2050a8a4f1a2646c729e41396f733b (patch)
tree7030533c19a9cdf108c3fadc6a26f0d1cb79ea2b /server.c
parent71cb78c10a80f448b912dc20d24ea731f6a102d9 (diff)
downloadfio-d279fccc5e2050a8a4f1a2646c729e41396f733b.tar.gz
fio-d279fccc5e2050a8a4f1a2646c729e41396f733b.tar.bz2
client/server: make sure that all elements in io_u_lat_m[] are transferred and received
FIO_IO_U_LAT_U_NR is 10 whereas FIO_IO_U_LAT_M_NR is 12. So we must iterate over io_u_lat_u and io_u_lat_m separately. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'server.c')
-rw-r--r--server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.c b/server.c
index 1b3bc30a..1e269c29 100644
--- a/server.c
+++ b/server.c
@@ -1497,10 +1497,10 @@ void fio_server_send_ts(struct thread_stat *ts, struct group_run_stats *rs)
p.ts.io_u_complete[i] = cpu_to_le32(ts->io_u_complete[i]);
}
- for (i = 0; i < FIO_IO_U_LAT_U_NR; i++) {
+ for (i = 0; i < FIO_IO_U_LAT_U_NR; i++)
p.ts.io_u_lat_u[i] = cpu_to_le32(ts->io_u_lat_u[i]);
+ for (i = 0; i < FIO_IO_U_LAT_M_NR; i++)
p.ts.io_u_lat_m[i] = cpu_to_le32(ts->io_u_lat_m[i]);
- }
for (i = 0; i < DDIR_RWDIR_CNT; i++)
for (j = 0; j < FIO_IO_U_PLAT_NR; j++)