From 96f5b329c926243ed4c393ee57aeee08e19b24c6 Mon Sep 17 00:00:00 2001 From: Scott Lystig Fritchie Date: Fri, 7 Nov 2014 01:19:05 +0900 Subject: [PATCH] Tweaks for PULSE --- prototype/poc-machi/src/machi_chain_manager1.erl | 3 ++- prototype/poc-machi/test/machi_chain_manager1_pulse.erl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/prototype/poc-machi/src/machi_chain_manager1.erl b/prototype/poc-machi/src/machi_chain_manager1.erl index 9f87d5a..448638f 100644 --- a/prototype/poc-machi/src/machi_chain_manager1.erl +++ b/prototype/poc-machi/src/machi_chain_manager1.erl @@ -775,7 +775,8 @@ react_to_env_C200(Retries, P_latest, S) -> react_to_env_C210(Retries, #ch_mgr{name=MyName, proj=Proj} = S) -> ?REACT(c210), - sleep_ranked_order(10, 100, MyName, Proj#projection.all_members), + sleep_ranked_order(2, 25, MyName, Proj#projection.all_members), + %% sleep_ranked_order(10, 100, MyName, Proj#projection.all_members), react_to_env_C220(Retries, S). react_to_env_C220(Retries, S) -> diff --git a/prototype/poc-machi/test/machi_chain_manager1_pulse.erl b/prototype/poc-machi/test/machi_chain_manager1_pulse.erl index 0b437a5..382e53d 100644 --- a/prototype/poc-machi/test/machi_chain_manager1_pulse.erl +++ b/prototype/poc-machi/test/machi_chain_manager1_pulse.erl @@ -214,7 +214,7 @@ prop_pulse() -> %% FLU a might need one more tick to write its private projection, but %% it isn't given a chance at the end of the PULSE run. So we cheat LastTriggerTicks = {set,{var,99999997}, - {call, ?MODULE, do_ticks, [20, undefined, no, no]}}, + {call, ?MODULE, do_ticks, [110, undefined, no, no]}}, Cmds1 = lists:duplicate(length(all_list()), LastTriggerTicks), Cmds = Cmds0 ++ Cmds1 ++ [{set,{var,99999999},