diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2020-10-12 10:36:37 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-10-12 10:36:37 -0400 |
| commit | b1823b69f602c4e9a10f15c92f1c3a2fcb836a30 (patch) | |
| tree | 641ded072e2f954ee06a839a31f037f2c39e9fce /pimd/pim_main.c | |
| parent | 8b6b6b694d7c5ae8193e0c9a3907b9143df44a07 (diff) | |
bgpd: Correctly calculate threshold being reached
if (pcout > (pcount * peer->max_threshold[afi][safi] / 100 ))
is always true. So the very first route received will always
trigger the warning. We actually want the warning to happen
when we hit the threshold.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pimd/pim_main.c')
0 files changed, 0 insertions, 0 deletions
