Bugfix: minor flap count bookeeping error

This commit is contained in:
Scott Lystig Fritchie 2015-08-30 00:50:03 +09:00
parent a7db3a26c6
commit 4b83893047

View file

@ -2266,8 +2266,7 @@ calculate_flaps(P_newprop, P_latest, _P_current, CurrentUp, _FlapLimit,
[X || {_FLU, {{_FlEpk,FlTime}, _FlapCount}}=X <- RemoteTransFlapCounts1,
FlTime /= ?NOT_FLAPPING],
TempNewFlapCount = FlapCount + 1,
TempAllFlapCounts = lists:sort([{MyName, {FlapStart, TempNewFlapCount}}|
RemoteTransFlapCounts]),
TempAllFlapCounts = lists:sort([{MyName, FlapStart}|RemoteTransFlapCounts]),
%% Sanity check.
true = lists:all(fun({_FLU,{_EpkTime,_Count}}) -> true;
(_) -> false