Last active
October 13, 2015 22:04
-
-
Save ppikula/062a2d468766e56e59cb to your computer and use it in GitHub Desktop.
dialyzer error ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-spec do(amoc:scenario(), non_neg_integer(), non_neg_integer(), amoc:do_opts()) -> [any()]. | |
do(Scenario, Start, End, Opts) -> | |
Nodes = proplists:get_value(nodes, Opts, nodes()), | |
_InterArrival = proplists:get_value(interarrival, Opts, 75), | |
_RepeatTimeout = proplists:get_value(repeat, Opts, 75), | |
_Step = proplists:get_value(step, Opts, 1), | |
amoc_event:notify({dist_do, Scenario, Start, End, Opts}), | |
Count = length(Nodes), | |
[ amoc_controller:do(Node, Scenario, Start, End, Count, Id, Opts) || | |
{Id, Node} <- lists:zip(lists:seq(1, Count), Nodes) ]. | |
%% From amoc controller | |
-spec do(node(), amoc:scenario(), non_neg_integer(), non_neg_integer(), [node()], | |
non_neg_integer(), amoc:do_opts()) -> ok | {error, term()}. | |
do(Node, Scenario, Start, End, Nodes, NodeId, Opts) -> | |
gen_server:call({?SERVER, Node}, {do, Scenario, Start, End, Nodes, NodeId, Opts}). | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment