summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2016-03-31 07:18:22 -0400
committerKeith Bostic <keith@wiredtiger.com>2016-03-31 07:18:22 -0400
commitdee78f0d2087b5892d2e2c4812f8167f1e5a9b3f (patch)
tree56e306ac0e2856c8ebbdbc7b4ec530882f6a0263 /bench
parent0d61a3bf1b0a9521b5c8cda22e78f6875725a5c3 (diff)
parent3030f356cb8050b1e35ae01318a8b1c0fead9528 (diff)
downloadmongo-dee78f0d2087b5892d2e2c4812f8167f1e5a9b3f.tar.gz
Merge branch 'develop' into wt-2330
Diffstat (limited to 'bench')
-rw-r--r--bench/wtperf/wtperf_throttle.c7
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;
}