Skip to content

Commit 3a4fbc4

Browse files
committed
Fixes bug introduced by resolution of #1
1 parent 635b7bc commit 3a4fbc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tap_aggr.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ start(Time,Interval,MsgTime)->
4343
_ -> error_logger:info_msg("tap_aggr: starting...~n"),
4444
TapDS = tap_ds:start(),
4545
TCD = whereis(tap_client_data),
46-
{_Date,Time} = calendar:universal_time(),
47-
Pid = spawn(?MODULE,listen,[#state{raw_edge_list=[],tap_ds = TapDS,tap_client_data=TCD,query_count=0,time_stamp=calendar:time_to_seconds(Time)}]),
46+
{_Date,CurTime} = calendar:universal_time(),
47+
Pid = spawn(?MODULE,listen,[#state{raw_edge_list=[],tap_ds = TapDS,tap_client_data=TCD,query_count=0,time_stamp=calendar:time_to_seconds(CurTime)}]),
4848
register(tap_aggr,Pid),
4949
[ Recv ! {subscribe, {Pid, packet_in_dns_reply}} || Recv <- Receivers ],
5050
Pid

0 commit comments

Comments
 (0)