round
This commit is contained in:
parent
5f0c0df458
commit
ae2c5a4fab
|
@ -359,5 +359,5 @@ send_will_msg(#proto_state{will_msg = WillMsg }) ->
|
||||||
|
|
||||||
start_keepalive(0) -> ignore;
|
start_keepalive(0) -> ignore;
|
||||||
start_keepalive(Sec) when Sec > 0 ->
|
start_keepalive(Sec) when Sec > 0 ->
|
||||||
self() ! {keepalive, start, Sec * 1.5}.
|
self() ! {keepalive, start, round(Sec * 1.5)}.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue