mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 19:12:28 -04:00
added a checkbox in settings for tuning auto-check of shared directories
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4107 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5492f405c3
commit
7c6682b89f
10 changed files with 151 additions and 23 deletions
|
@ -167,9 +167,8 @@ void ftServer::StartupThreads()
|
|||
|
||||
/* startup Monitor Thread */
|
||||
/* startup the FileMonitor (after cache load) */
|
||||
mFiMon->setPeriod(600); /* 10 minutes */
|
||||
/* start it up */
|
||||
//mFiMon->setSharedDirectories(dbase_dirs);
|
||||
|
||||
mFiMon->start();
|
||||
|
||||
/* Controller thread */
|
||||
|
@ -644,6 +643,15 @@ bool ftServer::removeSharedDirectory(std::string dir)
|
|||
|
||||
return true;
|
||||
}
|
||||
void ftServer::setWatchPeriod(int minutes)
|
||||
{
|
||||
mFiMon->setWatchPeriod(minutes*60) ;
|
||||
}
|
||||
int ftServer::watchPeriod() const
|
||||
{
|
||||
return mFiMon->watchPeriod()/60 ;
|
||||
}
|
||||
|
||||
void ftServer::setRememberHashFiles(bool b)
|
||||
{
|
||||
mFiMon->setRememberHashCache(b) ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue