fix(emqx_rule_engine_metrics): fix code_change vsn value

This commit is contained in:
EMQ-YangM 2022-01-24 11:14:31 +08:00
parent fcb3ba6cc8
commit 03d240c59e
1 changed files with 2 additions and 2 deletions

View File

@ -328,7 +328,7 @@ code_change({down, _Vsn}, State = #state{metric_ids = MIDs}, [Vsn]) ->
case string:tokens(Vsn, ".") of case string:tokens(Vsn, ".") of
["4", "3", SVal] -> ["4", "3", SVal] ->
{Val, []} = string:to_integer(SVal), {Val, []} = string:to_integer(SVal),
case Val =< 7 of case Val =< 6 of
true -> true ->
[begin [begin
Passed = get_rules_passed(Id), Passed = get_rules_passed(Id),
@ -356,7 +356,7 @@ code_change(_Vsn, State = #state{metric_ids = MIDs}, [Vsn]) ->
case string:tokens(Vsn, ".") of case string:tokens(Vsn, ".") of
["4", "3", SVal] -> ["4", "3", SVal] ->
{Val, []} = string:to_integer(SVal), {Val, []} = string:to_integer(SVal),
case Val =< 7 of case Val =< 6 of
true -> true ->
[begin [begin
Matched = get_rules_matched(Id), Matched = get_rules_matched(Id),