mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 03:49:29 -04:00
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:
parent
ccfee2d8e4
commit
26311a7ad6
2 changed files with 4 additions and 4 deletions
|
@ -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
|
//#ifdef FIM_DEBUG
|
||||||
std::cerr << "FileIndexMonitor::setPeriod() getting watch period" << std::endl;
|
std::cerr << "FileIndexMonitor::setPeriod() getting watch period" << std::endl;
|
||||||
|
@ -459,7 +459,7 @@ uint32_t FileIndexMonitor::getPeriod() const
|
||||||
return updatePeriod ;
|
return updatePeriod ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileIndexMonitor::setPeriod(uint32_t period)
|
void FileIndexMonitor::setPeriod(int period)
|
||||||
{
|
{
|
||||||
RsStackMutex mtx(fiMutex) ; /* LOCKED DIRS */
|
RsStackMutex mtx(fiMutex) ; /* LOCKED DIRS */
|
||||||
updatePeriod = period;
|
updatePeriod = period;
|
||||||
|
|
|
@ -156,8 +156,8 @@ class FileIndexMonitor: public CacheSource, public RsThread
|
||||||
bool rememberHashFiles() ;
|
bool rememberHashFiles() ;
|
||||||
// Remove any memory of formerly hashed files that are not shared anymore
|
// Remove any memory of formerly hashed files that are not shared anymore
|
||||||
void clearHashFiles() ;
|
void clearHashFiles() ;
|
||||||
void setPeriod(uint32_t insecs);
|
void setPeriod(int insecs);
|
||||||
uint32_t getPeriod() const;
|
int getPeriod() const;
|
||||||
|
|
||||||
bool autoCheckEnabled() const ;
|
bool autoCheckEnabled() const ;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue