diff --git a/libretroshare/src/dbase/fimonitor.cc b/libretroshare/src/dbase/fimonitor.cc index 91e76aa24..1c4bf83ab 100644 --- a/libretroshare/src/dbase/fimonitor.cc +++ b/libretroshare/src/dbase/fimonitor.cc @@ -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; diff --git a/libretroshare/src/dbase/fimonitor.h b/libretroshare/src/dbase/fimonitor.h index 0782bb238..ce7bcbf29 100644 --- a/libretroshare/src/dbase/fimonitor.h +++ b/libretroshare/src/dbase/fimonitor.h @@ -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 ;