mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Additional &is_used tags in the Netcontrol and Sumstats frameworks
When running a cluster, these functions only get called in select node types and could trigger no-caller warnings on stderr.
This commit is contained in:
parent
3ce1db1b5f
commit
edef3736fb
2 changed files with 6 additions and 6 deletions
|
@ -548,7 +548,7 @@ function check_thresholds(ss: SumStat, key: Key, result: Result, modify_pct: dou
|
|||
return F;
|
||||
}
|
||||
|
||||
function threshold_crossed(ss: SumStat, key: Key, result: Result)
|
||||
function threshold_crossed(ss: SumStat, key: Key, result: Result) &is_used
|
||||
{
|
||||
# If there is no callback, there is no point in any of this.
|
||||
if ( ! ss?$threshold_crossed )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue