diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-03-03 11:37:05 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-03-03 11:37:05 +0900 |
commit | 69cffeb94386911fb47f5d043bfdf09a61091d42 (patch) | |
tree | dc88dbb0c5d4be9b6b1a0688beca934ed760d7f2 /server/fsm.go | |
parent | c6fc099c6a30e9cbea473fae5530d33bc6f6172b (diff) |
config: remove time.Time in BgpNeighborCommonStateType
This is part of work to remove time.Time in bgp_config.go since no
nice way to represent time.Time with yang. We replace time.Time with
int64.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/fsm.go')
-rw-r--r-- | server/fsm.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/fsm.go b/server/fsm.go index acc4e3ec..547eafb6 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -91,7 +91,7 @@ func (fsm *FSM) bgpMessageStateUpdate(MessageType uint8, isIn bool) { case bgp.BGP_MSG_UPDATE: if isIn { state.UpdateIn++ - state.UpdateRecvTime = time.Now() + state.UpdateRecvTime = time.Now().Unix() } else { state.UpdateOut++ } |