Permalink
Browse files

add a new clause for get_id in order to use it in substitutions

  • Loading branch information...
1 parent ebe284c commit e51ee94b48ef13aaa86c649f99a4aa738b92cb99 @nniclausse nniclausse committed Aug 23, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/tsung_controller/ts_msg_server.erl
@@ -47,11 +47,15 @@ start() ->
?LOG("Starting ~n",?INFO),
gen_server:start_link({global,?MODULE}, ?MODULE, [], []).
+
get_id()->
gen_server:call({global, ?MODULE}, get_id).
get_id(list)->
- integer_to_list(get_id()).
+ integer_to_list(get_id());
+
+get_id({Pid,_DynData}) when is_pid(Pid)-> % to use this fun in substitutions
+ get_id(list).
reset()->
gen_server:call({global, ?MODULE}, reset).

0 comments on commit e51ee94

Please sign in to comment.