mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
Measurement framework tests all pass now.
This commit is contained in:
parent
6dc204b385
commit
53f9948b02
22 changed files with 544 additions and 381 deletions
|
@ -2,18 +2,18 @@
|
|||
|
||||
module Measurement;
|
||||
|
||||
event Measurement::finish_period(m: Measurement)
|
||||
event Measurement::finish_epoch(m: Measurement)
|
||||
{
|
||||
if ( m$id in result_store )
|
||||
{
|
||||
local data = result_store[m$id];
|
||||
if ( m?$period_finished )
|
||||
m$period_finished(data);
|
||||
if ( m?$epoch_finished )
|
||||
m$epoch_finished(data);
|
||||
|
||||
reset(m);
|
||||
}
|
||||
|
||||
schedule m$epoch { Measurement::finish_period(m) };
|
||||
|
||||
schedule m$epoch { Measurement::finish_epoch(m) };
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue