summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorSitsofe Wheeler <sitsofe@yahoo.com>2017-12-31 12:42:59 +0000
committerSitsofe Wheeler <sitsofe@yahoo.com>2017-12-31 12:59:39 +0000
commitdb43af344b282f5760a222c5d2bcffb2fd1a9553 (patch)
tree3e28a1b0e7cc797421c612502400f4ba893d9a46 /init.c
parentaf1600c115240ac4feb8df649e7d815988a27126 (diff)
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 <sitsofe@yahoo.com>
Diffstat (limited to 'init.c')
-rw-r--r--init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.c b/init.c
index f7d79c1..decd3b4 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
*/