From ae2c5a4fab96dced6ad0e5af1152f1f1f03be56f Mon Sep 17 00:00:00 2001 From: Ery Lee Date: Sat, 10 Jan 2015 16:57:28 +0800 Subject: [PATCH] round --- apps/emqtt/src/emqtt_protocol.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqtt/src/emqtt_protocol.erl b/apps/emqtt/src/emqtt_protocol.erl index 2bc27b39c..0e108da8f 100644 --- a/apps/emqtt/src/emqtt_protocol.erl +++ b/apps/emqtt/src/emqtt_protocol.erl @@ -359,5 +359,5 @@ send_will_msg(#proto_state{will_msg = WillMsg }) -> start_keepalive(0) -> ignore; start_keepalive(Sec) when Sec > 0 -> - self() ! {keepalive, start, Sec * 1.5}. + self() ! {keepalive, start, round(Sec * 1.5)}.