mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed saving of default chunk strategy. Progressive mode was not saved
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6269 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3c713f951d
commit
e4c3415ab9
@ -1977,7 +1977,18 @@ bool ftController::saveList(bool &cleanup, std::list<RsItem *>& saveData)
|
|||||||
configMap[active_downloads_size_ss] = s ;
|
configMap[active_downloads_size_ss] = s ;
|
||||||
configMap[download_dir_ss] = getDownloadDirectory();
|
configMap[download_dir_ss] = getDownloadDirectory();
|
||||||
configMap[partial_dir_ss] = getPartialsDirectory();
|
configMap[partial_dir_ss] = getPartialsDirectory();
|
||||||
configMap[default_chunk_strategy_ss] = (mDefaultChunkStrategy==FileChunksInfo::CHUNK_STRATEGY_STREAMING) ? "STREAMING" : "RANDOM";
|
|
||||||
|
switch(mDefaultChunkStrategy)
|
||||||
|
{
|
||||||
|
case FileChunksInfo::CHUNK_STRATEGY_STREAMING: configMap[default_chunk_strategy_ss] = "STREAMING" ;
|
||||||
|
break ;
|
||||||
|
case FileChunksInfo::CHUNK_STRATEGY_RANDOM: configMap[default_chunk_strategy_ss] = "RANDOM" ;
|
||||||
|
break ;
|
||||||
|
|
||||||
|
default:
|
||||||
|
case FileChunksInfo::CHUNK_STRATEGY_PROGRESSIVE:configMap[default_chunk_strategy_ss] = "PROGRESSIVE" ;
|
||||||
|
break ;
|
||||||
|
}
|
||||||
|
|
||||||
rs_sprintf(s, "%lu", RsDiscSpace::freeSpaceLimit());
|
rs_sprintf(s, "%lu", RsDiscSpace::freeSpaceLimit());
|
||||||
configMap[free_space_limit_ss] = s ;
|
configMap[free_space_limit_ss] = s ;
|
||||||
|
Loading…
Reference in New Issue
Block a user