mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Add timestamps to auto published broker events.
This commit is contained in:
parent
c12640b048
commit
1e807a9f0a
8 changed files with 127 additions and 10 deletions
|
@ -52,7 +52,7 @@ void EventHandler::SetFunc(FuncPtr f)
|
|||
local = std::move(f);
|
||||
}
|
||||
|
||||
void EventHandler::Call(Args* vl, bool no_remote)
|
||||
void EventHandler::Call(Args* vl, bool no_remote, double ts)
|
||||
{
|
||||
if ( ! call_count )
|
||||
{
|
||||
|
@ -100,10 +100,10 @@ void EventHandler::Call(Args* vl, bool no_remote)
|
|||
++it;
|
||||
|
||||
if ( it != auto_publish.end() )
|
||||
broker_mgr->PublishEvent(topic, Name(), xs);
|
||||
broker_mgr->PublishEvent(topic, Name(), xs, ts);
|
||||
else
|
||||
{
|
||||
broker_mgr->PublishEvent(topic, Name(), std::move(xs));
|
||||
broker_mgr->PublishEvent(topic, Name(), std::move(xs), ts);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue