aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-09-02 18:24:05 -0500
committerJP Dillingham <jp@dillingham.me>2024-09-02 18:24:05 -0500
commit453ac03bf30d4581477065d3f317dfd8fc50ed7b (patch)
tree2eb958d5a0d1f5b0e8507dceafd83a79429dcc46 /src/slskd/Core
parent9dac9a07ea15a2a4dceb43703ee3cac879be6619 (diff)
downloadslskd-453ac03bf30d4581477065d3f317dfd8fc50ed7b.tar.gz
add retention option for events
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Options.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index cad58817..17c017f7 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1323,6 +1323,12 @@ namespace slskd
public FileRetentionOptions Files { get; init; } = new FileRetentionOptions();
/// <summary>
+ /// Gets the time to retain events, in days.
+ /// </summary>
+ [Range(1, maximum: int.MaxValue)]
+ public int Events { get; init; } = 30;
+
+ /// <summary>
/// Gets the time to retain logs, in days.
/// </summary>
[Range(1, maximum: int.MaxValue)]