From d0f4cfe6b4536f1ae22c78997ae7b6673aa310d6 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 20 Aug 2021 10:34:00 -0700 Subject: [PATCH] print load status messages a little less often now that things go brrrrrrrrr --- controller/PostgreSQL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index 6d2e78a8..64b0767b 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -594,7 +594,7 @@ void PostgreSQL::initializeNetworks() auto dur = std::chrono::duration_cast(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(end - start);; total += dur.count(); ++count; - if (count % 1000 == 0) { + if (count % 10000 == 0) { fprintf(stderr, "Averaging %llu us per member\n", (total/count)); } }