WIP: undo AmFlappingNow_p condition added at commit 3dfe5c2

This commit is contained in:
Scott Lystig Fritchie 2015-08-28 18:39:18 +09:00
parent 3dfe5c2677
commit 18aac6e489

View file

@ -2238,9 +2238,11 @@ calculate_flaps(P_newprop, P_latest, _P_current, CurrentUp, _FlapLimit,
?REACT({calculate_flaps, ?LINE, [{queue_len, queue:len(H)}, ?REACT({calculate_flaps, ?LINE, [{queue_len, queue:len(H)},
{uniques, UniqueProposalSummaries}]}), {uniques, UniqueProposalSummaries}]}),
P_latest_Flap = get_raw_flapping_i(P_latest), P_latest_Flap = get_raw_flapping_i(P_latest),
AmFlappingNow_p = not (FlapStart == ?NOT_FLAPPING_START) AmFlappingNow_p = not (FlapStart == ?NOT_FLAPPING_START),
andalso %% TODO: revisit why I added this extra length()
length(UniqueProposalSummaries) == 1, %% condition back on commit 3dfe5c2.
%% andalso
%% length(UniqueProposalSummaries) == 1,
P_latest_flap_start = case P_latest_Flap of P_latest_flap_start = case P_latest_Flap of
undefined -> undefined ->
?NOT_FLAPPING_START; ?NOT_FLAPPING_START;