浏览代码

Sleep 10 seconds between writes to DB

Grant Limberg 5 年之前
父节点
当前提交
7f99c4a779
共有 1 个文件被更改,包括 1 次插入1 次删除
  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));
 	}
 }