aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Options.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 596019ae..080f1b0d 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1078,9 +1078,10 @@ namespace slskd
public TransferRetentionOptions Download { get; init; } = new TransferRetentionOptions();
/// <summary>
- /// Gets log retention options.
+ /// Gets the time to retain logs, in days.
/// </summary>
- public int Logs { get; init; } = 259200; // 180 days
+ [Range(1, maximum: int.MaxValue)]
+ public int Logs { get; init; } = 180;
/// <summary>
/// File retention options.