Fix the 'undefined function' call

This commit is contained in:
Feng Lee 2019-11-18 11:11:20 +08:00
parent c2e973d4f4
commit 39dbb03629
2 changed files with 2 additions and 2 deletions

View File

@ -176,5 +176,5 @@ format(Port) when is_integer(Port) ->
format({Addr, Port}) when is_list(Addr) ->
io_lib:format("~s:~w", [Addr, Port]);
format({Addr, Port}) when is_tuple(Addr) ->
io_lib:format("~s:~w", [inet:ntoab(Addr), Port]).
io_lib:format("~s:~w", [inet:ntoa(Addr), Port]).

View File

@ -177,7 +177,7 @@ suppress(Key, SuccFun, State = #{events := Events}) ->
end.
procinfo(Pid) ->
case {emqx_vm:get_process_info(Pid), emqx_vm:get_process_gc(Pid)} of
case {emqx_vm:get_process_info(Pid), emqx_vm:get_process_gc_info(Pid)} of
{undefined, _} -> undefined;
{_, undefined} -> undefined;
{Info, GcInfo} -> Info ++ GcInfo