From 7f99c4a7793b8c0621b12f0f1ad57d62b0b3dbc9 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 21 Aug 2020 16:22:28 -0700 Subject: [PATCH] Sleep 10 seconds between writes to DB --- controller/PostgreSQL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index 0ea40455..1e25abbc 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -1714,7 +1714,7 @@ void PostgreSQL::onlineNotification_Redis() fprintf(stderr, "Error in online notification thread (redis): %s\n", e.what()); #endif } - std::this_thread::sleep_for(std::chrono::milliseconds(100)); + std::this_thread::sleep_for(std::chrono::seconds(10)); } }