Record connection start time in milliseconds, not seconds

This commit is contained in:
Сергей Прохоров 2018-10-06 14:51:15 +02:00
parent 8e618906b4
commit 56d8bac4ea
No known key found for this signature in database
GPG key ID: 1C570244E4EF3337

View file

@ -88,7 +88,7 @@ init({_Ref, Socket, Transport, [Name, Secret, Tag]}) ->
secret = unhex(Secret),
proxy_tag = unhex(Tag),
up_transport = Transport,
started_at = erlang:system_time(second),
started_at = erlang:system_time(millisecond),
timer = Timer},
{ok, State};
{error, Reason} ->