From 0079c40526a36608f502f0e395f01197233bbbd2 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Thu, 3 Mar 2016 13:19:31 +0900 Subject: fsm: fix min keepalive interval to 1sec from 1ns Signed-off-by: ISHIDA Wataru --- server/fsm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/fsm.go b/server/fsm.go index cc4fb95f..05e2c4fb 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -865,7 +865,7 @@ func keepaliveTicker(fsm *FSM) *time.Ticker { } sec := time.Second * time.Duration(fsm.pConf.Timers.State.KeepaliveInterval) if sec == 0 { - sec = 1 + sec = time.Second } return time.NewTicker(sec) } -- cgit v1.2.3