diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-02-03 17:57:40 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-02-03 17:57:40 -0600 |
| commit | a5dfc10ed3cd1b8381537870626fa9a7fbdcd8a3 (patch) | |
| tree | c0bc8ec5d37752ae5a81ac18f3f756257e7f7427 | |
| parent | 9615aef899fe426cf3b4f95672b2d080032ff30f (diff) | |
| download | slskd-a5dfc10ed3cd1b8381537870626fa9a7fbdcd8a3.tar.gz | |
allow -1 limit to indicate unlimited
| -rw-r--r-- | src/slskd/Core/Options.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 68f3c3dc..2aadf206 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -1060,19 +1060,19 @@ namespace slskd /// <summary> /// Gets the limit for number of files. /// </summary> - [Range(1, int.MaxValue)] + [Range(-1, int.MaxValue)] public int? Files { get; init; } = null; /// <summary> /// Gets the limit for number of megabytes. /// </summary> - [Range(1, int.MaxValue)] + [Range(-1, int.MaxValue)] public int? Megabytes { get; init; } = null; /// <summary> /// Gets the limit for number of failures. /// </summary> - [Range(1, int.MaxValue)] + [Range(-1, int.MaxValue)] public int? Failures { get; init; } = null; } } |
