summaryrefslogtreecommitdiffhomepage
path: root/table/adj.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-22 15:42:57 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-22 16:08:43 +0900
commita37e4eac6ccb76eada55a385c65ccee316188694 (patch)
tree99445634147672dc403cc1e728d5756663ed81f7 /table/adj.go
parent8f53958c659d9eb634648a4566f0088f93c9248a (diff)
table: fix the number of accepted
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/adj.go')
-rw-r--r--table/adj.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/table/adj.go b/table/adj.go
index d7a0555d..f7914557 100644
--- a/table/adj.go
+++ b/table/adj.go
@@ -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]--
}
}