From 498400adad996de4ebaea8311d72dfe38d9aff28 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 29 Jan 2016 16:44:21 +0900 Subject: api: fix typo s/advertized/advertised Signed-off-by: ISHIDA Wataru --- server/peer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server') 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{ -- cgit v1.2.3