mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 16:45:11 -04:00
allow max storage duration to be 0, in which case we keep all history
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6777 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4dd77457ad
commit
4e259fecfd
2 changed files with 2 additions and 2 deletions
|
@ -158,7 +158,7 @@ void p3HistoryMgr::cleanOldMessages()
|
|||
for(std::map<std::string, std::map<uint32_t, RsHistoryMsgItem*> >::iterator mit = mMessages.begin(); mit != mMessages.end();)
|
||||
{
|
||||
for(std::map<uint32_t, RsHistoryMsgItem*>::iterator lit = mit->second.begin();lit!=mit->second.end();)
|
||||
if(lit->second->recvTime + mMaxStorageDurationSeconds < now)
|
||||
if(mMaxStorageDurationSeconds > 0 && lit->second->recvTime + mMaxStorageDurationSeconds < now)
|
||||
{
|
||||
std::map<uint32_t, RsHistoryMsgItem*>::iterator lit2 = lit ;
|
||||
++lit2 ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue