Skip to content
Permalink
Browse files

Don't check cpu util on Alpine that uses libc-musl

  • Loading branch information
turtleDeng committed Sep 16, 2019
1 parent 31671f5 commit 9cdaa71a66c44d6bfd7606f8e64bc6670f619cdf
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/emqx_os_mon.erl
@@ -166,4 +166,7 @@ call(Req) ->
gen_server:call(?OS_MON, Req, infinity).

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.

0 comments on commit 9cdaa71

Please sign in to comment.
You can’t perform that action at this time.