aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-10-01 17:11:31 -0500
committerJP Dillingham <jp@dillingham.me>2023-10-01 17:11:31 -0500
commit6598b2ad3d7dcb2b814cee6a3f7b38b5365a7522 (patch)
tree8e6998c56bbe0b1c7f48dc8ff375311d8a114ad5 /src
parent988191364cb96b6f83337e5c855652067ba0a8cd (diff)
downloadslskd-6598b2ad3d7dcb2b814cee6a3f7b38b5365a7522.tar.gz
add range for file retention options
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/Options.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 080f1b0d..eb852015 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1091,11 +1091,13 @@ namespace slskd
/// <summary>
/// Gets the time to retain completed files, in minutes.
/// </summary>
+ [Range(30, maximum: int.MaxValue)]
public int? Complete { get; init; } = null;
/// <summary>
/// Gets the time to retain incomplete files, in minutes.
/// </summary>
+ [Range(30, maximum: int.MaxValue)]
public int? Incomplete { get; init; } = null;
}