fix: bad log path

This commit is contained in:
DDDHuang 2022-04-21 18:33:37 +08:00 committed by ieQu1
parent b89ed9a139
commit e24ab5588a
1 changed files with 2 additions and 3 deletions

View File

@ -287,9 +287,8 @@ format(_Node, Info = #{memory_total := Total, memory_used := Used}) ->
case log_path() of
undefined ->
<<"not found">>;
Path0 ->
Path = list_to_binary(Path0),
<<SysPath/binary, Path/binary>>
Path ->
filename:join(SysPath, Path)
end,
Info#{
memory_total := emqx_mgmt_util:kmg(Total),