diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-29 16:44:21 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-29 16:44:21 +0900 |
commit | 498400adad996de4ebaea8311d72dfe38d9aff28 (patch) | |
tree | 081ab785e68419ed1ea83d2adaa45fb75fd92cfb /server | |
parent | 2adf4c392e444d393b038d0952d4b5cf7d656d28 (diff) |
api: fix typo s/advertized/advertised
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r-- | server/peer.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/peer.go b/server/peer.go index 33621155..bf4f2928 100644 --- a/server/peer.go +++ b/server/peer.go @@ -235,12 +235,12 @@ func (peer *Peer) ToApiStruct() *api.Peer { timer := c.Timers s := c.State - advertized := uint32(0) + advertised := uint32(0) received := uint32(0) accepted := uint32(0) if f.state == bgp.BGP_FSM_ESTABLISHED { rfList := peer.configuredRFlist() - advertized = uint32(peer.adjRibOut.Count(rfList)) + advertised = uint32(peer.adjRibOut.Count(rfList)) received = uint32(peer.adjRibIn.Count(rfList)) accepted = uint32(peer.adjRibIn.Accepted(rfList)) } @@ -299,7 +299,7 @@ func (peer *Peer) ToApiStruct() *api.Peer { Messages: msg, Received: received, Accepted: accepted, - Advertized: advertized, + Advertised: advertised, } return &api.Peer{ |