diff --git a/src/DurableTask.Netherite/StorageLayer/Faster/MemoryTracker.cs b/src/DurableTask.Netherite/StorageLayer/Faster/MemoryTracker.cs index 3291f695..2374797e 100644 --- a/src/DurableTask.Netherite/StorageLayer/Faster/MemoryTracker.cs +++ b/src/DurableTask.Netherite/StorageLayer/Faster/MemoryTracker.cs @@ -45,7 +45,7 @@ public void UpdateTargetSizes() int numberOfStores = this.stores.Count; if (numberOfStores > 0) { - long targetSize = this.maxCacheSize / this.stores.Count; + long targetSize = this.maxCacheSize / numberOfStores; foreach (var s in this.stores.Keys) { s.SetTargetSize(targetSize);