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

This commit is contained in:
Grant Limberg 2021-08-20 10:34:00 -07:00
parent 3ec23f92ec
commit d0f4cfe6b4
No known key found for this signature in database
GPG Key ID: 2BA62CCABBB4095A

View File

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