mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 06:20:44 -04:00
fixed sleeping when hashing strategy
This commit is contained in:
parent
733ad438fb
commit
df14b41ba6
2 changed files with 44 additions and 11 deletions
|
@ -102,6 +102,15 @@ int p3FileDatabase::tick()
|
|||
// -
|
||||
cleanup();
|
||||
|
||||
static time_t last_print_time = 0;
|
||||
time_t now = time(NULL) ;
|
||||
|
||||
if(last_print_time + 60 < now)
|
||||
{
|
||||
mLocalSharedDirs->print();
|
||||
last_print_time = now ;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -353,6 +362,8 @@ int p3FileDatabase::RequestDirDetails(void *ref, DirDetails& d, FileSearchFlags
|
|||
|
||||
d.prow = mDirectories[fi]->parentRow(e) ;
|
||||
d.id = mDirectories[fi]->peerId();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
int p3FileDatabase::RequestDirDetails(const RsPeerId& uid,const std::string& path, DirDetails &details) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue