diff options
author | Keith Bostic <keith@wiredtiger.com> | 2016-03-31 07:18:22 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2016-03-31 07:18:22 -0400 |
commit | dee78f0d2087b5892d2e2c4812f8167f1e5a9b3f (patch) | |
tree | 56e306ac0e2856c8ebbdbc7b4ec530882f6a0263 | |
parent | 0d61a3bf1b0a9521b5c8cda22e78f6875725a5c3 (diff) | |
parent | 3030f356cb8050b1e35ae01318a8b1c0fead9528 (diff) | |
download | mongo-dee78f0d2087b5892d2e2c4812f8167f1e5a9b3f.tar.gz |
Merge branch 'develop' into wt-2330
-rw-r--r-- | bench/wtperf/wtperf_throttle.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bench/wtperf/wtperf_throttle.c b/bench/wtperf/wtperf_throttle.c index bba1f629715..a98fd9b18d7 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; } |