Ensure that .minfp and .maxfp are respected for FIO_OPT_FLOAT_LIST
authorBart Van Assche <bart.vanassche@wdc.com>
Tue, 3 Apr 2018 18:23:11 +0000 (11:23 -0700)
committerBart Van Assche <bart.vanassche@wdc.com>
Wed, 4 Apr 2018 20:53:45 +0000 (13:53 -0700)
option_init() overwrites the .minfp and .maxfp members defined in
fio_options[] which is wrong. Remove the code that overwrites these two
members and change the convention for no FIO_OPT_FLOAT_LIST limits from
(minfp == DBL_MIN && maxfp == DBL_MAX) into (minfp != 0 || maxfp != 0).

Fixes: 833491908a1a ("stats: Add a function to report completion latency percentiles")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>

No differences found