Merge pull request #587 from GabbeHags/active_download_clients

download limit now takes in to consideration total active downloads
This commit is contained in:
Roger Far 2024-11-18 03:24:40 -07:00 committed by GitHub
commit 154b6187e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -138,7 +138,7 @@ public class InternalDownloader : IDownloader
{ {
settingDownloadMaxSpeed = 0; settingDownloadMaxSpeed = 0;
} }
settingDownloadMaxSpeed = settingDownloadMaxSpeed / Math.Max(TorrentRunner.ActiveDownloadClients.Count, 1);
settingDownloadMaxSpeed = settingDownloadMaxSpeed * 1024 * 1024; settingDownloadMaxSpeed = settingDownloadMaxSpeed * 1024 * 1024;
var settingDownloadTimeout = Settings.Get.DownloadClient.Timeout; var settingDownloadTimeout = Settings.Get.DownloadClient.Timeout;