mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
change names of data structures after talking with seth
This commit is contained in:
parent
b0c4dcdfed
commit
80962ad74b
5 changed files with 24 additions and 24 deletions
|
@ -5,7 +5,7 @@ module SumStats;
|
|||
|
||||
export {
|
||||
redef enum Calculation += {
|
||||
## Keep last X observations in Queue
|
||||
## Keep last X observations in a queue
|
||||
LAST
|
||||
};
|
||||
|
||||
|
@ -16,15 +16,15 @@ export {
|
|||
|
||||
redef record ResultVal += {
|
||||
## This is the queue where elements are maintained. Use the
|
||||
## :bro:see:`SumStats::get_elements` function to get a vector of the samples.
|
||||
## :bro:see:`SumStats::get_elements` function to get a vector of the current element values.
|
||||
last_elements: Queue::Queue &optional;
|
||||
};
|
||||
|
||||
## Get a vector of element values from a ResultVal.
|
||||
global get_elements: function(rv: ResultVal): vector of Observation;
|
||||
global get_last_elements: function(rv: ResultVal): vector of Observation;
|
||||
}
|
||||
|
||||
function get_elements(rv: ResultVal): vector of Observation
|
||||
function get_last_elements(rv: ResultVal): vector of Observation
|
||||
{
|
||||
local s: vector of Observation = vector();
|
||||
if ( rv?$last_elements )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue