download limit now takes in to consideration total active downloads

This commit is contained in:
GabbeHags 2024-09-15 21:04:55 +02:00
parent 35f959ee26
commit df084bcebe

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;