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:
csoler 2010-11-09 20:49:42 +00:00
parent b79341503e
commit f7d5836a86

View File

@ -826,7 +826,7 @@ bool p3Channels::getCleanUpList(std::map<std::string, uint32_t>& warnings,const
continue;
// 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;
timeLeft = CHANNEL_STOREPERIOD - (now - chMsgInfo.ts);
@ -834,6 +834,7 @@ bool p3Channels::getCleanUpList(std::map<std::string, uint32_t>& warnings,const
}
return true ;
}