mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 03:52:39 -04:00
Changes according to experiments from jolavilette:
- set desiredRate of peers to 10MB/s instead of 1MB/s - maximum number of active chunks per peer is now 20 (that was a serious limiting factor) - ticks that bring no data are not accounted for in the speed estimate anymore. The data is averaged over all ticks since the previous non zero data chunk -> this brings much more stability to sources and removes lots of oscillation. The maximum theoretical speed per source peer is therefore 13MB/s (in "Average" DL mode), whereas previously it was 1.3MB/s git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6897 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3f09bdb0b7
commit
9c4c5da73d
3 changed files with 13 additions and 9 deletions
|
@ -77,8 +77,8 @@ static const int32_t TIMOUT_CACHE_FILE_TRANSFER = 800 ; // time after which cac
|
|||
static const int32_t FT_FILECONTROL_QUEUE_ADD_END = 0 ;
|
||||
static const int32_t FT_FILECONTROL_QUEUE_ADD_AFTER_CACHE = 1 ;
|
||||
|
||||
const uint32_t FT_CNTRL_STANDARD_RATE = 1024 * 1024;
|
||||
const uint32_t FT_CNTRL_SLOW_RATE = 10 * 1024;
|
||||
const uint32_t FT_CNTRL_STANDARD_RATE = 10 * 1024 * 1024;
|
||||
const uint32_t FT_CNTRL_SLOW_RATE = 100 * 1024;
|
||||
|
||||
ftFileControl::ftFileControl()
|
||||
:mTransfer(NULL), mCreator(NULL),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue