summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
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;
}