diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-10-01 17:09:45 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-10-01 17:09:45 -0500 |
| commit | 988191364cb96b6f83337e5c855652067ba0a8cd (patch) | |
| tree | 1888bf89308b8a4133b5f26ad40a6af402a96511 /src/slskd/Core | |
| parent | dc6b79df40ed8f274e6e248c6a27ceda3c5168b2 (diff) | |
| download | slskd-988191364cb96b6f83337e5c855652067ba0a8cd.tar.gz | |
log retention set in days
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Options.cs | 5 |
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. |
