mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Small updates to hopefully correct reporter errors leading to lost memory.
This commit is contained in:
parent
a615601269
commit
e93fd69cf2
4 changed files with 16 additions and 12 deletions
|
@ -44,7 +44,8 @@ hook add_to_reducer_hook(r: Reducer, val: double, data: DataPoint, rv: ResultVal
|
|||
# Reduced priority since this depends on the average
|
||||
hook compose_resultvals_hook(result: ResultVal, rv1: ResultVal, rv2: ResultVal) &priority=-5
|
||||
{
|
||||
if ( rv1?$var_s && rv2?$var_s )
|
||||
if ( rv1?$var_s && rv1?$average &&
|
||||
rv2?$var_s && rv2?$average )
|
||||
{
|
||||
local rv1_avg_sq = (rv1$average - result$average);
|
||||
rv1_avg_sq = rv1_avg_sq*rv1_avg_sq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue