summaryrefslogtreecommitdiff
path: root/controller/FileDB.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'controller/FileDB.cpp')
-rw-r--r--controller/FileDB.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/FileDB.cpp b/controller/FileDB.cpp
index 917784ba..69573306 100644
--- a/controller/FileDB.cpp
+++ b/controller/FileDB.cpp
@@ -75,7 +75,7 @@ FileDB::FileDB(EmbeddedNetworkController *const nc,const Identity &myId,const ch
_onlineUpdateThread = std::thread([this]() {
unsigned int cnt = 0;
while (this->_running) {
- usleep(250);
+ std::this_thread::sleep_for(std::chrono::microseconds(100));
if ((++cnt % 20) == 0) { // 5 seconds
std::lock_guard<std::mutex> l(this->_online_l);
if (!this->_running) return;