summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-10-13 11:02:00 -0600
committerJens Axboe <axboe@kernel.dk>2019-10-13 11:02:00 -0600
commit9663e751c25d3bf52e959d8c9025460d2f645b1e (patch)
tree9083b3694e7d2ee9c9d049c3fd3d76600d566a70
parent983a656c11bf35043759de48aa5a85bdb4ffb106 (diff)
parent1fb9250b81aa7c655cb62ab26647a6ad54a279d5 (diff)
downloadfio-9663e751c25d3bf52e959d8c9025460d2f645b1e.tar.gz
fio-9663e751c25d3bf52e959d8c9025460d2f645b1e.tar.bz2
Merge branch 'fix-corrupt-hist-log' of https://github.com/sitsofe/fio
* 'fix-corrupt-hist-log' of https://github.com/sitsofe/fio: stat: fix corruption in histogram logs
-rw-r--r--stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stat.c b/stat.c
index 33637900..05663e07 100644
--- a/stat.c
+++ b/stat.c
@@ -2580,7 +2580,7 @@ void add_clat_sample(struct thread_data *td, enum fio_ddir ddir,
io_u_plat = (uint64_t *) td->ts.io_u_plat[ddir];
dst = malloc(sizeof(struct io_u_plat_entry));
memcpy(&(dst->io_u_plat), io_u_plat,
- FIO_IO_U_PLAT_NR * sizeof(unsigned int));
+ FIO_IO_U_PLAT_NR * sizeof(uint64_t));
flist_add(&dst->list, &hw->list);
__add_log_sample(iolog, sample_plat(dst), ddir, bs,
elapsed, offset);