stat: don't add duplicate clat entries for json
authorJens Axboe <axboe@kernel.dk>
Sat, 6 Jan 2018 21:47:01 +0000 (14:47 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 6 Jan 2018 21:47:01 +0000 (14:47 -0700)
commit702bd977555105292f3d60dee896cd35ff8b11ef
treee2dae2f09b719e549c8a91b9743d949393da6bf9
parent57a61cd0e4c5f131cfe75587d8b995191d87ba57
stat: don't add duplicate clat entries for json

For some reason the initial commit always filled all
entries with zeroes, when it should just stop printing.
I suspect this was carried over from the terse/csv output,
where we do the same. But there it's actually valid, as we
have to have a fixed number of fields. For json we both
don't need it, and it's causing us to create invalid json
when we have duplicate keys.

Fixes: https://github.com/axboe/fio/issues/511
Signed-off-by: Jens Axboe <axboe@kernel.dk>
stat.c