From 6f3de5cefec65b1fd31abd79274089282ea6569e Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Wed, 4 Dec 2024 19:00:53 +0000 Subject: [PATCH] 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 --- stat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stat.c b/stat.c index c5413f2f13..f1984dcea9 100644 --- a/stat.c +++ b/stat.c @@ -507,6 +507,7 @@ static struct thread_stat *gen_mixed_ddir_stats_from_ts(struct thread_stat *ts) ts_lcl->slat_percentiles = ts->slat_percentiles; ts_lcl->percentile_precision = ts->percentile_precision; memcpy(ts_lcl->percentile_list, ts->percentile_list, sizeof(ts->percentile_list)); + ts_lcl->sig_figs = ts->sig_figs; sum_thread_stats(ts_lcl, ts);