mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +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
|
@ -11,7 +11,7 @@ export {
|
|||
|
||||
redef record ResultVal += {
|
||||
## For numeric data, this calculates the standard deviation.
|
||||
std_dev: double &optional;
|
||||
std_dev: double &default=0.0;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -28,8 +28,6 @@ hook add_to_reducer_hook(r: Reducer, val: double, data: DataPoint, rv: ResultVal
|
|||
{
|
||||
if ( rv?$variance )
|
||||
calc_std_dev(rv);
|
||||
else
|
||||
rv$std_dev = 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue