summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2018-12-28 22:48:54 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2018-12-28 23:27:53 +0900
commitd7e5bf22a6ef7ebbed02968d5610968e3f06cfc6 (patch)
treeedfbe24fd80c7eafa035708a704b6e2ba9815b6e /cmd
parentc83d234c308ce3b9f0d9e7b52ecfb84657e4e300 (diff)
fix bmp statistics
fix the regression of the adj counter due to 301b48532d4a5510c9d4ffdc44eb2754fdd1a3d1 Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gobgp/neighbor.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/gobgp/neighbor.go b/cmd/gobgp/neighbor.go
index 8e603299..31e01b4c 100644
--- a/cmd/gobgp/neighbor.go
+++ b/cmd/gobgp/neighbor.go
@@ -95,10 +95,10 @@ func getASN(p *api.Peer) string {
return asn
}
-func counter(p *api.Peer) (uint32, uint32, uint32, error) {
- accepted := uint32(0)
- received := uint32(0)
- advertised := uint32(0)
+func counter(p *api.Peer) (uint64, uint64, uint64, error) {
+ accepted := uint64(0)
+ received := uint64(0)
+ advertised := uint64(0)
for _, afisafi := range p.AfiSafis {
if subOpts.AddressFamily != "" {
f, e := checkAddressFamily(&api.Family{})