summaryrefslogtreecommitdiff
path: root/src/common/token_bucket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/token_bucket.c')
-rw-r--r--src/common/token_bucket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/token_bucket.c b/src/common/token_bucket.c
index d18731b0e3..747189e751 100644
--- a/src/common/token_bucket.c
+++ b/src/common/token_bucket.c
@@ -119,7 +119,7 @@ rate_per_sec_to_rate_per_step(uint32_t rate)
*/
uint64_t units = (uint64_t) rate * TICKS_PER_STEP;
uint32_t val = (uint32_t)
- monotime_coarse_stamp_units_to_approx_msec(units) / 1000;
+ (monotime_coarse_stamp_units_to_approx_msec(units) / 1000);
return val ? val : 1;
}