mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-15 13:48:16 +00:00
print load status messages a little less often now that things go brrrrrrrrr
This commit is contained in:
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user