From c6bb6ad8788fb1c20ed466a495f2b47034947145 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 --- 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 c1d6f9f4f..e523992ad 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs @@ -620,7 +620,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent } else if (torrent.RatioLimit == -2 && config.MaxRatioEnabled) { - if (torrent.Ratio >= config.MaxRatio) + if (Math.Round(torrent.Ratio, 2) >= config.MaxRatio) { return true; }