diff --git a/libretroshare/src/ft/ftchunkmap.h b/libretroshare/src/ft/ftchunkmap.h index dda771ddc..46a088c6f 100644 --- a/libretroshare/src/ft/ftchunkmap.h +++ b/libretroshare/src/ft/ftchunkmap.h @@ -121,8 +121,8 @@ class ChunkMap /// Decides how chunks are selected. /// STREAMING: the 1st chunk is always returned - /// RANDOM: the beginning of a random interval is selected first. If two few intervals - /// exist, the largest one is randomly split into two. + /// RANDOM: a uniformly random chunk is selected among available chunks for the current source. + /// void setStrategy(FileChunksInfo::ChunkStrategy s) { _strategy = s ; } FileChunksInfo::ChunkStrategy getStrategy() const { return _strategy ; } diff --git a/libretroshare/src/ft/ftcontroller.cc b/libretroshare/src/ft/ftcontroller.cc index b64018900..41e12d856 100644 --- a/libretroshare/src/ft/ftcontroller.cc +++ b/libretroshare/src/ft/ftcontroller.cc @@ -98,7 +98,8 @@ ftController::ftController(CacheStrapper *cs, ftDataMultiplex *dm, std::string c mDataplex(dm), mTurtle(NULL), mFtActive(false), - mShareDownloadDir(true) + mShareDownloadDir(true), + mDefaultChunkStrategy(FileChunksInfo::CHUNK_STRATEGY_RANDOM) { _max_active_downloads = 5 ; // default queue size /* TODO */