From a5dfc10ed3cd1b8381537870626fa9a7fbdcd8a3 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 3 Feb 2024 17:57:40 -0600 Subject: allow -1 limit to indicate unlimited --- src/slskd/Core/Options.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 /// /// Gets the limit for number of files. /// - [Range(1, int.MaxValue)] + [Range(-1, int.MaxValue)] public int? Files { get; init; } = null; /// /// Gets the limit for number of megabytes. /// - [Range(1, int.MaxValue)] + [Range(-1, int.MaxValue)] public int? Megabytes { get; init; } = null; /// /// Gets the limit for number of failures. /// - [Range(1, int.MaxValue)] + [Range(-1, int.MaxValue)] public int? Failures { get; init; } = null; } } -- cgit v1.2.3