Ive been reading through the BitTorrent Specification wiki working though my announce and its pretty much finished just want to test the speed so if anyone has a test server and 2 minutes spare please try and post you announce speed
Mine seems just a little faster then the original v3 one i converted - but would be nice to compare with other setups - although i know server will play some part.
Code is for v3 - dont try this on live site it will stop all torrents - they start again after removing edits
In announce.php under the first line <?php add
find at the bottom
add above
Now in client pause & resume a torrent a few times to get the speed - speed will show in client message
Then remove the edits :thumb
Mine seems just a little faster then the original v3 one i converted - but would be nice to compare with other setups - although i know server will play some part.
Code is for v3 - dont try this on live site it will stop all torrents - they start again after removing edits
In announce.php under the first line <?php add
$GLOBALS['tstart'] = array_sum(explode(" ", microtime()));find at the bottom
// NOW BENC THE DATA AND SEND TO CLIENT???add above
$totaltime = array_sum(explode(" ", microtime())) - $GLOBALS['tstart'];
err("$totaltime");
Now in client pause & resume a torrent a few times to get the speed - speed will show in client message
Then remove the edits :thumb
Last edited by M-jay
on 2021-06-19 08:45:50
on 2021-06-19 08:45:50