From 219e5f179eb1a54a757bc77b2b5be33ef32239a2 Mon Sep 17 00:00:00 2001 From: David Hows Date: Wed, 30 Mar 2016 16:18:52 +1100 Subject: WT-2512 - Change how throttle values per thread are calculated --- bench/wtperf/wtperf_throttle.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bench/wtperf/wtperf_throttle.c b/bench/wtperf/wtperf_throttle.c index bba1f629715..f9fb3a74ea0 100644 --- a/bench/wtperf/wtperf_throttle.c +++ b/bench/wtperf/wtperf_throttle.c @@ -104,10 +104,9 @@ worker_throttle(CONFIG_THREAD *thread) */ WT_RET(__wt_epoch(NULL, &throttle_cfg->last_increment)); } else { - throttle_cfg->ops_count = - (uint64_t) (float)(usecs_delta / - throttle_cfg->usecs_increment) * - (float)throttle_cfg->ops_per_increment; + throttle_cfg->ops_count = usecs_delta * + throttle_cfg->ops_per_increment / + throttle_cfg->usecs_increment; throttle_cfg->last_increment = now; } -- cgit v1.2.1