chore: start os_mon in handle_continue/2
This commit is contained in:
parent
c0d14bb112
commit
78356d2625
|
@ -82,11 +82,11 @@ current_sysmem_percent() ->
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
||||||
init([]) ->
|
init([]) ->
|
||||||
%% start os_mon temporarily
|
|
||||||
{ok, _} = application:ensure_all_started(os_mon),
|
|
||||||
{ok, undefined, {continue, setup}}.
|
{ok, undefined, {continue, setup}}.
|
||||||
|
|
||||||
handle_continue(setup, undefined) ->
|
handle_continue(setup, undefined) ->
|
||||||
|
%% start os_mon temporarily
|
||||||
|
{ok, _} = application:ensure_all_started(os_mon),
|
||||||
%% memsup is not reliable, ignore
|
%% memsup is not reliable, ignore
|
||||||
memsup:set_sysmem_high_watermark(1.0),
|
memsup:set_sysmem_high_watermark(1.0),
|
||||||
SysHW = init_os_monitor(),
|
SysHW = init_os_monitor(),
|
||||||
|
|
Loading…
Reference in New Issue