DDDHuang 3 лет назад
Родитель
Сommit
39d83b95f4
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      apps/emqx_management/src/emqx_mgmt_api_nodes.erl

+ 2 - 3
apps/emqx_management/src/emqx_mgmt_api_nodes.erl

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