diff --git a/pkg/local_object_storage/blobovnicza/sizes.go b/pkg/local_object_storage/blobovnicza/sizes.go index c6e91bc0bc..a8859ba6d6 100644 --- a/pkg/local_object_storage/blobovnicza/sizes.go +++ b/pkg/local_object_storage/blobovnicza/sizes.go @@ -61,7 +61,7 @@ func (b *Blobovnicza) syncFullnessCounter(tx *bbolt.Tx) error { return false, fmt.Errorf("bucket not found %s", stringifyBounds(lower, upper)) } - sz += uint64(buck.Stats().KeyN) * (upper - lower) + sz += uint64(buck.Stats().KeyN) * (upper + lower) / 2 return false, nil }); err != nil { @@ -71,5 +71,4 @@ func (b *Blobovnicza) syncFullnessCounter(tx *bbolt.Tx) error { b.filled.Store(sz) return nil - }