diff --git a/src/Orleans.Core/Configuration/CollectionAgeLimitAttribute.cs b/src/Orleans.Core/Configuration/CollectionAgeLimitAttribute.cs index fc3a3cf763..9ba8673499 100644 --- a/src/Orleans.Core/Configuration/CollectionAgeLimitAttribute.cs +++ b/src/Orleans.Core/Configuration/CollectionAgeLimitAttribute.cs @@ -79,7 +79,7 @@ private TimeSpan CalculateValue() var span = AlwaysActive ? TimeSpan.FromDays(short.MaxValue) : TimeSpan.FromDays(Days) + TimeSpan.FromHours(Hours) + TimeSpan.FromMinutes(Minutes); - return span <= TimeSpan.Zero + return span < MinAgeLimit ? MinAgeLimit : span; }