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:
commit
0dee156185
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue