Skip to content

Commit 6f3de5c

Browse files
committed
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: #1844 Signed-off-by: Vincent Fu <[email protected]>
1 parent dc03e37 commit 6f3de5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stat.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ static struct thread_stat *gen_mixed_ddir_stats_from_ts(struct thread_stat *ts)
507507
ts_lcl->slat_percentiles = ts->slat_percentiles;
508508
ts_lcl->percentile_precision = ts->percentile_precision;
509509
memcpy(ts_lcl->percentile_list, ts->percentile_list, sizeof(ts->percentile_list));
510+
ts_lcl->sig_figs = ts->sig_figs;
510511

511512
sum_thread_stats(ts_lcl, ts);
512513

0 commit comments

Comments
 (0)