turned some uint32_t into int, for file watch period (did not produce a bug, but was still incorrect)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4115 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-03-31 19:59:56 +00:00
parent ccfee2d8e4
commit 26311a7ad6
2 changed files with 4 additions and 4 deletions

View File

@ -450,7 +450,7 @@ bool FileIndexMonitor::updateCache(const CacheData &data) /* we call this one *
}
uint32_t FileIndexMonitor::getPeriod() const
int FileIndexMonitor::getPeriod() const
{
//#ifdef FIM_DEBUG
std::cerr << "FileIndexMonitor::setPeriod() getting watch period" << std::endl;
@ -459,7 +459,7 @@ uint32_t FileIndexMonitor::getPeriod() const
return updatePeriod ;
}
void FileIndexMonitor::setPeriod(uint32_t period)
void FileIndexMonitor::setPeriod(int period)
{
RsStackMutex mtx(fiMutex) ; /* LOCKED DIRS */
updatePeriod = period;

View File

@ -156,8 +156,8 @@ class FileIndexMonitor: public CacheSource, public RsThread
bool rememberHashFiles() ;
// Remove any memory of formerly hashed files that are not shared anymore
void clearHashFiles() ;
void setPeriod(uint32_t insecs);
uint32_t getPeriod() const;
void setPeriod(int insecs);
int getPeriod() const;
bool autoCheckEnabled() const ;