From 26311a7ad6c6634929a5e33e89aa4a2c5b5d71ad Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 31 Mar 2011 19:59:56 +0000 Subject: [PATCH] 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 --- libretroshare/src/dbase/fimonitor.cc | 4 ++-- libretroshare/src/dbase/fimonitor.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 ;