Add missed case for monitors (#2353)
This commit is contained in:
parent
f0fa9a9252
commit
f5c426a2f2
|
@ -142,7 +142,9 @@ handle_info({timeout, Timer, check}, State = #{timer := Timer,
|
||||||
true -> alarm_handler:clear_alarm(cpu_high_watermark);
|
true -> alarm_handler:clear_alarm(cpu_high_watermark);
|
||||||
false -> ok
|
false -> ok
|
||||||
end,
|
end,
|
||||||
{noreply, ensure_check_timer(State#{is_cpu_alarm_set := false})}
|
{noreply, ensure_check_timer(State#{is_cpu_alarm_set := false})};
|
||||||
|
_Busy ->
|
||||||
|
{noreply, ensure_check_timer(State)}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
terminate(_Reason, #{timer := Timer}) ->
|
terminate(_Reason, #{timer := Timer}) ->
|
||||||
|
|
|
@ -109,7 +109,9 @@ handle_info({timeout, Timer, check}, State = #{timer := Timer,
|
||||||
true -> alarm_handler:clear_alarm(too_many_processes);
|
true -> alarm_handler:clear_alarm(too_many_processes);
|
||||||
false -> ok
|
false -> ok
|
||||||
end,
|
end,
|
||||||
{noreply, ensure_check_timer(State#{is_process_alarm_set := false})}
|
{noreply, ensure_check_timer(State#{is_process_alarm_set := false})};
|
||||||
|
_Precent ->
|
||||||
|
{noreply, ensure_check_timer(State)}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
terminate(_Reason, #{timer := Timer}) ->
|
terminate(_Reason, #{timer := Timer}) ->
|
||||||
|
|
Loading…
Reference in New Issue