Record connection start time in milliseconds, not seconds

parent 8e618906
...@@ -88,7 +88,7 @@ init({_Ref, Socket, Transport, [Name, Secret, Tag]}) -> ...@@ -88,7 +88,7 @@ init({_Ref, Socket, Transport, [Name, Secret, Tag]}) ->
secret = unhex(Secret), secret = unhex(Secret),
proxy_tag = unhex(Tag), proxy_tag = unhex(Tag),
up_transport = Transport, up_transport = Transport,
started_at = erlang:system_time(second), started_at = erlang:system_time(millisecond),
timer = Timer}, timer = Timer},
{ok, State}; {ok, State};
{error, Reason} -> {error, Reason} ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment