diff --git a/lib/storage/storage.go b/lib/storage/storage.go index a8f879bf66..9109d38328 100644 --- a/lib/storage/storage.go +++ b/lib/storage/storage.go @@ -2094,7 +2094,7 @@ func (dmc *dateMetricIDCache) syncLocked() { atomic.AddUint64(&dmc.syncsCount, 1) - if dmc.EntriesCount() > memory.Allowed()/128 { + if dmc.SizeBytes() > uint64(memory.Allowed())/256 { dmc.resetLocked() } }