mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Reduce weird-stats overhead
observe_weird_stats only needs to be called when cluster_ss_request is called for the weirds.statistics stat, not for all of them.
This commit is contained in:
parent
dbf5d5fc95
commit
73954bca27
1 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,8 @@ function observe_weird_stats()
|
||||||
# less synchronized?
|
# less synchronized?
|
||||||
event SumStats::cluster_ss_request(uid: string, ss_name: string, cleanup: bool) &priority=10
|
event SumStats::cluster_ss_request(uid: string, ss_name: string, cleanup: bool) &priority=10
|
||||||
{
|
{
|
||||||
|
if ( ss_name != "weirds.statistics" )
|
||||||
|
return;
|
||||||
observe_weird_stats();
|
observe_weird_stats();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue