mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-28 00:07:09 -05:00
Returned debugging to what it was!
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4334 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9e420ce08e
commit
f475c4bdd6
@ -356,16 +356,15 @@ void ftController::cleanCacheDownloads()
|
|||||||
if (((it->second)->mFlags & RS_FILE_HINTS_CACHE) && it->second->mState != ftFileControl::DOWNLOADING)
|
if (((it->second)->mFlags & RS_FILE_HINTS_CACHE) && it->second->mState != ftFileControl::DOWNLOADING)
|
||||||
// check if a cache file is downloaded, if the case, timeout the transfer after TIMOUT_CACHE_FILE_TRANSFER
|
// check if a cache file is downloaded, if the case, timeout the transfer after TIMOUT_CACHE_FILE_TRANSFER
|
||||||
{
|
{
|
||||||
|
#ifdef CONTROL_DEBUG
|
||||||
std::cerr << "ftController::run() cache transfer found. age of this tranfer is :" << (int)(time(NULL) - (it->second)->mCreateTime);
|
std::cerr << "ftController::run() cache transfer found. age of this tranfer is :" << (int)(time(NULL) - (it->second)->mCreateTime);
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
#ifdef CONTROL_DEBUG
|
|
||||||
#endif
|
#endif
|
||||||
if (now > (it->second)->mCreator->creationTimeStamp() + TIMOUT_CACHE_FILE_TRANSFER)
|
if (now > (it->second)->mCreator->creationTimeStamp() + TIMOUT_CACHE_FILE_TRANSFER)
|
||||||
{
|
{
|
||||||
std::cerr << "ftController::run() cache transfer to old. Cancelling transfer. Hash :" << (it->second)->mHash << ", time=" << (it->second)->mCreateTime << ", now = " << time(NULL) ;
|
|
||||||
std::cerr << "ftController::run() creationTimeStamp: " << (it->second)->mCreator->creationTimeStamp();
|
|
||||||
std::cerr << std::endl;
|
|
||||||
#ifdef CONTROL_DEBUG
|
#ifdef CONTROL_DEBUG
|
||||||
|
std::cerr << "ftController::run() cache transfer to old. Cancelling transfer. Hash :" << (it->second)->mHash << ", time=" << (it->second)->mCreateTime << ", now = " << time(NULL) ;
|
||||||
|
std::cerr << std::endl;
|
||||||
#endif
|
#endif
|
||||||
toCancel.push_back((it->second)->mHash);
|
toCancel.push_back((it->second)->mHash);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user