summaryrefslogtreecommitdiff
path: root/test/test-ratelim.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-ratelim.c')
-rw-r--r--test/test-ratelim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-ratelim.c b/test/test-ratelim.c
index 28aed289..17babfdc 100644
--- a/test/test-ratelim.c
+++ b/test/test-ratelim.c
@@ -220,7 +220,7 @@ check_bucket_levels_cb(evutil_socket_t fd, short events, void *arg)
#undef B
total_n_bev_checks++;
- if (total_n_bev_checks >= .8 * (cfg_duration / cfg_tick_msec) * cfg_n_connections) {
+ if (total_n_bev_checks >= .8 * ((double)cfg_duration / cfg_tick_msec) * cfg_n_connections) {
event_free(event_base_get_running_event(bufferevent_get_base(bev)));
}
}