table: fix the number of accepted

Signed-off-by: FUJITA Tomonori <[email protected]>
This commit is contained in:
FUJITA Tomonori
2015-12-22 16:08:43 +09:00
parent 8f53958c65
commit a37e4eac6c
+1 -1
View File
@@ -49,7 +49,7 @@ func (adj *AdjRib) Update(pathList []*Path) {
if path.IsWithdraw {
if found {
delete(adj.table[rf], key)
if old.Filtered(adj.id) > POLICY_DIRECTION_NONE {
if old.Filtered(adj.id) == POLICY_DIRECTION_NONE {
adj.accepted[rf]--
}
}