From 4b83893047b107faa9bcf0071f8e76b78f55479b Mon Sep 17 00:00:00 2001 From: Scott Lystig Fritchie Date: Sun, 30 Aug 2015 00:50:03 +0900 Subject: [PATCH] Bugfix: minor flap count bookeeping error --- src/machi_chain_manager1.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/machi_chain_manager1.erl b/src/machi_chain_manager1.erl index 290dc8e..2e443d4 100644 --- a/src/machi_chain_manager1.erl +++ b/src/machi_chain_manager1.erl @@ -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