Skip to content

Commit

Permalink
Round off the seeded ratio when checking for removal candidates
Browse files Browse the repository at this point in the history
Signed-off-by: Stevie Robinson <stevie.robinson@gmail.com>

(cherry picked from commit c6bb6ad8788fb1c20ed466a495f2b47034947145)
  • Loading branch information
stevietv authored and mynameisbogdan committed Jan 19, 2024
1 parent 1dc28a8 commit 3438339
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -611,7 +611,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;
}
Expand Down

0 comments on commit 3438339

Please sign in to comment.