chore: start os_mon in handle_continue/2

This commit is contained in:
zhongwencool 2023-08-16 20:54:53 +08:00
parent c0d14bb112
commit 78356d2625
1 changed files with 2 additions and 2 deletions

View File

@ -82,11 +82,11 @@ current_sysmem_percent() ->
%%--------------------------------------------------------------------
init([]) ->
%% start os_mon temporarily
{ok, _} = application:ensure_all_started(os_mon),
{ok, undefined, {continue, setup}}.
handle_continue(setup, undefined) ->
%% start os_mon temporarily
{ok, _} = application:ensure_all_started(os_mon),
%% memsup is not reliable, ignore
memsup:set_sysmem_high_watermark(1.0),
SysHW = init_os_monitor(),