From 9704a8eb12576494a283b5c44ffe4a42b29653aa Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 11 Jun 2021 16:03:46 -0500 Subject: simplify --- src/slskd/Common/Compute.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/slskd/Common/Compute.cs b/src/slskd/Common/Compute.cs index ef1f1882..0e75be0c 100644 --- a/src/slskd/Common/Compute.cs +++ b/src/slskd/Common/Compute.cs @@ -29,8 +29,7 @@ namespace slskd iteration = Math.Min(100, iteration); var computedDelay = Math.Floor((Math.Pow(2, iteration) - 1) / 2) * 1000; - var safeDelay = (int)Math.Min(computedDelay, int.MaxValue); - var clampedDelay = Math.Min(safeDelay, maxDelayInMilliseconds); + var clampedDelay = (int)Math.Min(computedDelay, maxDelayInMilliseconds); var jitter = new Random().Next(1000); -- cgit v1.2.3