mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-24 17:00:27 -05: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
@ -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<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();)
|
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 ;
|
std::map<uint32_t, RsHistoryMsgItem*>::iterator lit2 = lit ;
|
||||||
++lit2 ;
|
++lit2 ;
|
||||||
|
@ -662,7 +662,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="label_3">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Maximum storage period, in days:</string>
|
<string>Maximum storage period, in days (0=keep all):</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user