Skip to content

Commit 1a66b46

Browse files
committed
fix Maintain()
1 parent e5c8abc commit 1a66b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collect/cache/cuckoo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func (c *CuckooTraceChecker) Maintain() {
206206
c.mut.RUnlock()
207207

208208
// once the current one is half loaded, we can start using the future one too
209-
if futureLoadFactor != 0 && currentLoadFactor > 0.5 {
209+
if futureLoadFactor == 0 && currentLoadFactor > 0.5 {
210210
c.mut.Lock()
211211
c.future = cuckoo.NewFilter(c.capacity)
212212
c.mut.Unlock()

0 commit comments

Comments
 (0)