From 9542ea0d2ea4a87a27d2dc5e2f9b2b5ceec45979 Mon Sep 17 00:00:00 2001 From: Stevie Robinson Date: Wed, 17 Jan 2024 23:08:01 +0100 Subject: [PATCH] Round off the seeded ratio when checking for removal candidates Signed-off-by: Stevie Robinson (cherry picked from commit c6bb6ad8788fb1c20ed466a495f2b47034947145) --- src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs index 57e2d97b5..6c2e4936a 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs @@ -613,7 +613,7 @@ protected bool HasReachedSeedLimit(QBittorrentTorrent torrent, QBittorrentPrefer } else if (torrent.RatioLimit == -2 && config.MaxRatioEnabled) { - if (torrent.Ratio >= config.MaxRatio) + if (Math.Round(torrent.Ratio, 2) >= config.MaxRatio) { return true; }