removed delay in file checking that would cause excessively long file update cycle

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4653 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-10-24 16:11:12 +00:00
parent 78955270e2
commit a48dc86fb8

View File

@ -555,11 +555,14 @@ void FileIndexMonitor::updateCycle()
{ {
/* sleep a bit for each loop */ /* sleep a bit for each loop */
/********************************** WINDOWS/UNIX SPECIFIC PART ******************/ /********************************** WINDOWS/UNIX SPECIFIC PART ******************/
#ifndef WINDOWS_SYS // csoler: I'm disabling this since it causes a very long update cycle when the number
usleep(100000); /* 1/10 sec */ // of directories to go through is very large.
#else //
Sleep(100); // #ifndef WINDOWS_SYS
#endif // usleep(100000); /* 1/10 sec */
// #else
// Sleep(100);
// #endif
/********************************** WINDOWS/UNIX SPECIFIC PART ******************/ /********************************** WINDOWS/UNIX SPECIFIC PART ******************/
/* check if directories have been updated */ /* check if directories have been updated */