Permalink
Browse files

Fix the bug for match if 'do' attribute = abort

1 parameter is missed in tuple when calling ts_mod:add_match
  • Loading branch information...
1 parent 45bf657 commit 4a8183c4c41d781b73da913987b6be263a23e6da @idxn idxn committed Jan 9, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/tsung/ts_search.erl
View
@@ -236,8 +236,8 @@ setcount(#match{do=loop,loop_back=Back,max_loop=MaxLoop,sleep_loop=Sleep},{Count
timer:sleep(Sleep),
Count + 1 + Back
end;
-setcount(#match{do=abort}, {Count,MaxC,SessionId,UserId}, Stats,_, Tr) ->
- ts_mon:add_match([{count, match_stop} | Stats],{UserId,SessionId,MaxC-Count,Tr}),
+setcount(#match{do=abort,name=Name}, {Count,MaxC,SessionId,UserId}, Stats,_, Tr) ->
+ ts_mon:add_match([{count, match_stop} | Stats],{UserId,SessionId,MaxC-Count,Tr, Name}),
0.
%%----------------------------------------------------------------------

0 comments on commit 4a8183c

Please sign in to comment.