diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-09-02 18:24:05 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-09-02 18:24:05 -0500 |
| commit | 453ac03bf30d4581477065d3f317dfd8fc50ed7b (patch) | |
| tree | 2eb958d5a0d1f5b0e8507dceafd83a79429dcc46 /src/slskd/Core | |
| parent | 9dac9a07ea15a2a4dceb43703ee3cac879be6619 (diff) | |
| download | slskd-453ac03bf30d4581477065d3f317dfd8fc50ed7b.tar.gz | |
add retention option for events
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Options.cs | 6 |
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)] |
