1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

another test commit for vraa.. this is just an experiment; probably eats a lot of memory

This commit is contained in:
Charles Kerr 2008-12-18 03:27:07 +00:00
parent d4b4f39754
commit 53b730420f

View file

@ -563,7 +563,7 @@ getDesiredOutputBufferSize( const tr_peerIo * io )
const double maxBlockSize = 16 * 1024; /* 16 KiB is from BT spec */
const double currentSpeed = tr_bandwidthGetPieceSpeed( io->bandwidth, TR_UP );
const double period = 20; /* arbitrary */
return MAX( maxBlockSize*5.5, currentSpeed*1024*period );
return MAX( maxBlockSize*20.5, currentSpeed*1024*period );
}
size_t