浏览代码

print load status messages a little less often now that things go brrrrrrrrr

Grant Limberg 3 年之前
父节点
当前提交
d0f4cfe6b4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controller/PostgreSQL.cpp

+ 2 - 2
controller/PostgreSQL.cpp

@@ -594,7 +594,7 @@ void PostgreSQL::initializeNetworks()
 			auto dur = std::chrono::duration_cast<std::chrono::microseconds>(end - start);;
 			auto dur = std::chrono::duration_cast<std::chrono::microseconds>(end - start);;
 			total += dur.count();
 			total += dur.count();
 			++count;
 			++count;
-			if (count % 1000 == 0) {
+			if (count % 10000 == 0) {
 				fprintf(stderr, "Averaging %llu us per network\n", (total/count));
 				fprintf(stderr, "Averaging %llu us per network\n", (total/count));
 			}
 			}
 		}
 		}
@@ -748,7 +748,7 @@ void PostgreSQL::initializeMembers()
 			auto dur = std::chrono::duration_cast<std::chrono::microseconds>(end - start);;
 			auto dur = std::chrono::duration_cast<std::chrono::microseconds>(end - start);;
 			total += dur.count();
 			total += dur.count();
 			++count;
 			++count;
-			if (count % 1000 == 0) {
+			if (count % 10000 == 0) {
 				fprintf(stderr, "Averaging %llu us per member\n", (total/count));
 				fprintf(stderr, "Averaging %llu us per member\n", (total/count));
 			}
 			}
 		}
 		}