mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
HLL: make large value test use signed integer, not counts.
This commit is contained in:
parent
4252c003d0
commit
83b94331cd
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ event bro_init()
|
|||
hll_cardinality_add(cp, count_to_v4_addr(base+i));
|
||||
}
|
||||
|
||||
if ( |double_to_count(hll_cardinality_estimate(cp)) - 170000| > 10000 )
|
||||
local res: int = double_to_count(hll_cardinality_estimate(cp));
|
||||
if ( |res - 170000| > 15000 )
|
||||
print "Big error";
|
||||
else
|
||||
print "Ok error";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue