Don't check cpu util on Alpine that uses libc-musl
This commit is contained in:
parent
6e0a269ff6
commit
d8bcb1b26f
|
@ -175,4 +175,7 @@ code_change(_OldVsn, State, _Extra) ->
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
||||||
ensure_check_timer(State = #{cpu_check_interval := Interval}) ->
|
ensure_check_timer(State = #{cpu_check_interval := Interval}) ->
|
||||||
State#{timer := emqx_misc:start_timer(timer:seconds(Interval), check)}.
|
case erlang:system_info(system_architecture) of
|
||||||
|
"x86_64-pc-linux-musl" -> State;
|
||||||
|
_ -> State#{timer := emqx_misc:start_timer(timer:seconds(Interval), check)}
|
||||||
|
end.
|
||||||
|
|
Loading…
Reference in New Issue