Merge pull request #6838 from EMQ-YangM/main-v4.3

fix(emqx_rule_engine_metrics): fix code_change vsn value
This commit is contained in:
JianBo He 2022-01-24 11:39:33 +08:00 committed by GitHub
commit 0dee156185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
["4", "3", SVal] ->
{Val, []} = string:to_integer(SVal),
case Val =< 7 of
case Val =< 6 of
true ->
[begin
Passed = get_rules_passed(Id),
@ -356,7 +356,7 @@ code_change(_Vsn, State = #state{metric_ids = MIDs}, [Vsn]) ->
case string:tokens(Vsn, ".") of
["4", "3", SVal] ->
{Val, []} = string:to_integer(SVal),
case Val =< 7 of
case Val =< 6 of
true ->
[begin
Matched = get_rules_matched(Id),