diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-06-11 16:03:46 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-06-11 16:03:46 -0500 |
| commit | 9704a8eb12576494a283b5c44ffe4a42b29653aa (patch) | |
| tree | de111e71d40a6162a4c4872c3c0342e51bfdb458 /src | |
| parent | 07331bd2d16bfba8d3d0365d1e7860e807ba6d30 (diff) | |
| download | slskd-9704a8eb12576494a283b5c44ffe4a42b29653aa.tar.gz | |
simplify
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Common/Compute.cs | 3 |
1 files changed, 1 insertions, 2 deletions
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); |
