mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 10:35:22 -04:00
added proper dynamic suppression of sources from chunkmap, and updated the gui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2498 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1c2683f613
commit
5f7486f160
8 changed files with 57 additions and 31 deletions
|
@ -402,6 +402,16 @@ void ChunkMap::getChunksInfo(FileChunksInfo& info) const
|
|||
info.compressed_peer_availability_maps[it->first] = it->second.cmap ;
|
||||
}
|
||||
|
||||
void ChunkMap::removeFileSource(const std::string& peer_id)
|
||||
{
|
||||
std::map<std::string,SourceChunksInfo>::iterator it(_peers_chunks_availability.find(peer_id)) ;
|
||||
|
||||
if(it == _peers_chunks_availability.end())
|
||||
return ;
|
||||
|
||||
_peers_chunks_availability.erase(it) ;
|
||||
}
|
||||
|
||||
void ChunkMap::getAvailabilityMap(CompressedChunkMap& compressed_map) const
|
||||
{
|
||||
compressed_map = CompressedChunkMap(_map) ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue