Jump to content

optimization


MYriad

Recommended Posts

Posted

I have a lot of active torrents from one tracker for case when most of them wouldn't be claimed. But the case, when all or most of them are uploading, forces me to pause some torrents, because of high-loaded HDD and little upload speed of each torrent.

I would like to have function, that allow me to use dynamic number of active torrents. Something like this: "Upload min torrents on max speed".

{on launch:

Set (all ready for uploading torrents' statuses) as pause

Set (number of uploading torrents) as 1

Set (torrent's with min seeds and max leacher status) as launched

while (sum uploading speed) < (max uploading speed [setted be user]) - 10% [because uploading speed is always dynamic] do

set (number of uploading torrents) as (number of uploading torrents) + 1

Every [setted by user] minute do

if (uploading speed of one of torrents) < 10 KB/s then set (this torrent's status) as paused

else if (sum uploading speed) < (max uploading speed [setted be user]) - 10%

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...