diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-09-17 16:40:58 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-09-17 16:40:58 -0500 |
| commit | 98536d94108044b709658895782ba25d5693825b (patch) | |
| tree | 8fef2b93295005f3ae605b214732fd27646de034 /src | |
| parent | 5e79b99824ef85832ee9399b149c46c3b35d8411 (diff) | |
| download | slskd-98536d94108044b709658895782ba25d5693825b.tar.gz | |
make retention options nullable, and in minutes
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/Options.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 7e21865f..30297cac 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -1077,22 +1077,22 @@ namespace slskd public class TransferRetentionOptions { /// <summary> - /// Gets the time to retain successful transfers, in hours. + /// Gets the time to retain successful transfers, in minutes. /// </summary> - [Range(1, maximum: int.MaxValue)] - public int Succeeded { get; init; } = int.MaxValue; + [Range(5, maximum: int.MaxValue)] + public int? Succeeded { get; init; } = null; /// <summary> - /// Gets the time to retain errored transfers, in hours. + /// Gets the time to retain errored transfers, in minutes. /// </summary> - [Range(1, maximum: int.MaxValue)] - public int Errored { get; init; } = int.MaxValue; + [Range(5, maximum: int.MaxValue)] + public int? Errored { get; init; } = null; /// <summary> - /// Gets the time to retain cancelled transfers, in hours. + /// Gets the time to retain cancelled transfers, in minutes. /// </summary> - [Range(1, maximum: int.MaxValue)] - public int Cancelled { get; init; } = int.MaxValue; + [Range(5, maximum: int.MaxValue)] + public int? Cancelled { get; init; } = null; } } |
