diff options
author | Harald Welte <laforge@gnumonks.org> | 2001-10-16 08:26:37 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2001-10-16 08:26:37 +0000 |
commit | 1412e459e4439cd878d036d1f3191bd70d795b08 (patch) | |
tree | c1bd0ef62988e898b88cd54157e1e13211c32d4b /extensions/libipt_limit.c | |
parent | eba774d39b042462beba8110c298d81aea923539 (diff) |
more precise limit rate printing/saving
Diffstat (limited to 'extensions/libipt_limit.c')
-rw-r--r-- | extensions/libipt_limit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libipt_limit.c b/extensions/libipt_limit.c index edbc1cbf..73f9b37a 100644 --- a/extensions/libipt_limit.c +++ b/extensions/libipt_limit.c @@ -148,7 +148,7 @@ static void print_rate(u_int32_t period) for (i = 1; i < sizeof(rates)/sizeof(struct rates); i++) { if (period > rates[i].mult - || rates[i].mult % period != 0) + || rates[i].mult/period < rates[i].mult%period) break; } |