HLL: make large value test use signed integer, not counts.

This commit is contained in:
Johanna Amann 2016-07-14 18:13:01 -07:00
parent 4252c003d0
commit 83b94331cd

View file

@ -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";