From: Sitsofe Wheeler Date: Sun, 31 Dec 2017 12:42:59 +0000 (+0000) Subject: init: disable percentiles when latency gathering is disabled X-Git-Tag: fio-3.4~30^2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=db43af344b282f5760a222c5d2bcffb2fd1a9553 init: disable percentiles when latency gathering is disabled When disable_clat/disable_lat is set also disable the corresponding clat_percentiles/lat_percentiles option. Signed-off-by: Sitsofe Wheeler --- diff --git a/init.c b/init.c index f7d79c1c..decd3b4e 100644 --- a/init.c +++ b/init.c @@ -938,6 +938,11 @@ static int fixup_options(struct thread_data *td) ret = 1; } + if (o->disable_lat) + o->lat_percentiles = 0; + if (o->disable_clat) + o->clat_percentiles = 0; + /* * Fix these up to be nsec internally */