stat: fix unified_rw_reporting=both BW and IOPS
authorVincent Fu <vincent.fu@samsung.com>
Wed, 4 Dec 2024 19:00:53 +0000 (19:00 +0000)
committerVincent Fu <vincent.fu@samsung.com>
Wed, 4 Dec 2024 19:00:53 +0000 (19:00 +0000)
commit6f3de5cefec65b1fd31abd79274089282ea6569e
tree0c2020379966ee978849128c46de7fffed073a77
parentdc03e3788e2b47281b67e9354a7ff02a3053264a
stat: fix unified_rw_reporting=both BW and IOPS

When unified_rw_reporting=both, the value for the significant_figures
option is not populated in the struct thread_stat containing the mixed
r/w/t data. Thus, when bandwidth and IOPS numerical values are converted
to strings, they are converted to "0".

This patch populates the significant figures member of struct
thread_stat for the mixed r/w/t data.

Fixes: https://github.com/axboe/fio/issues/1844
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
stat.c