Check string length of ts->description, not value
[fio.git] / options.c
index 580d5aa5b95800d707c3fff92a719cc4ac4b1c76..48bb2a4d318fb005ac6463f5864769682bfdaddb 100644 (file)
--- a/options.c
+++ b/options.c
@@ -777,6 +777,7 @@ static int str_gtod_reduce_cb(void *data, int *il)
        td->o.disable_clat = !!val;
        td->o.disable_slat = !!val;
        td->o.disable_bw = !!val;
+       td->o.clat_percentiles = !val;
        if (val)
                td->tv_cache_mask = 63;
 
@@ -2016,7 +2017,7 @@ static struct fio_option options[FIO_MAX_OPTS] = {
                .type   = FIO_OPT_BOOL,
                .off1   = td_var_offset(clat_percentiles),
                .help   = "Enable the reporting of completion latency percentiles",
-               .def    = "0",
+               .def    = "1",
        },
        {
                .name   = "percentile_list",