Explorar o código

Sleep 10 seconds between writes to DB

Grant Limberg %!s(int64=5) %!d(string=hai) anos
pai
achega
7f99c4a779
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controller/PostgreSQL.cpp

+ 1 - 1
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));
 	}
 }