mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-03 02:50:07 -05:00
corrected 1 bug and 1 warning
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3769 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b79341503e
commit
f7d5836a86
@ -826,7 +826,7 @@ bool p3Channels::getCleanUpList(std::map<std::string, uint32_t>& warnings,const
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// if msg not close to warning limit leave it alone
|
// if msg not close to warning limit leave it alone
|
||||||
if((chMsgInfo.ts > (now - CHANNEL_STOREPERIOD + limit)) || (chMsgInfo.count < 1))
|
if((chMsgInfo.ts + CHANNEL_STOREPERIOD > (time_t)now + (time_t)limit) || (chMsgInfo.count < 1))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
timeLeft = CHANNEL_STOREPERIOD - (now - chMsgInfo.ts);
|
timeLeft = CHANNEL_STOREPERIOD - (now - chMsgInfo.ts);
|
||||||
@ -834,6 +834,7 @@ bool p3Channels::getCleanUpList(std::map<std::string, uint32_t>& warnings,const
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user