From f7d5836a86e997eb78a08207371e360ffe2f2667 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 9 Nov 2010 20:49:42 +0000 Subject: [PATCH] corrected 1 bug and 1 warning git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3769 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/services/p3channels.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/services/p3channels.cc b/libretroshare/src/services/p3channels.cc index 5b6af1ac9..51c297171 100644 --- a/libretroshare/src/services/p3channels.cc +++ b/libretroshare/src/services/p3channels.cc @@ -826,7 +826,7 @@ bool p3Channels::getCleanUpList(std::map& 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& warnings,const } + return true ; }