Bugfix: minor flap count bookeeping error
This commit is contained in:
parent
a7db3a26c6
commit
4b83893047
1 changed files with 1 additions and 2 deletions
|
@ -2266,8 +2266,7 @@ calculate_flaps(P_newprop, P_latest, _P_current, CurrentUp, _FlapLimit,
|
||||||
[X || {_FLU, {{_FlEpk,FlTime}, _FlapCount}}=X <- RemoteTransFlapCounts1,
|
[X || {_FLU, {{_FlEpk,FlTime}, _FlapCount}}=X <- RemoteTransFlapCounts1,
|
||||||
FlTime /= ?NOT_FLAPPING],
|
FlTime /= ?NOT_FLAPPING],
|
||||||
TempNewFlapCount = FlapCount + 1,
|
TempNewFlapCount = FlapCount + 1,
|
||||||
TempAllFlapCounts = lists:sort([{MyName, {FlapStart, TempNewFlapCount}}|
|
TempAllFlapCounts = lists:sort([{MyName, FlapStart}|RemoteTransFlapCounts]),
|
||||||
RemoteTransFlapCounts]),
|
|
||||||
%% Sanity check.
|
%% Sanity check.
|
||||||
true = lists:all(fun({_FLU,{_EpkTime,_Count}}) -> true;
|
true = lists:all(fun({_FLU,{_EpkTime,_Count}}) -> true;
|
||||||
(_) -> false
|
(_) -> false
|
||||||
|
|
Loading…
Reference in a new issue