From 49225da30a16a81f5e07c499af88c95da68b45b1 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sun, 7 Apr 2019 12:52:18 -0400 Subject: ... --- salticidae | 2 +- src/hotstuff.cpp | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/salticidae b/salticidae index 52a6bcd..07d197a 160000 --- a/salticidae +++ b/salticidae @@ -1 +1 @@ -Subproject commit 52a6bcd3a8e056135d50211c60742d7c0e2becb3 +Subproject commit 07d197a2d049aedb77536edeb3b20e51cc8c9588 diff --git a/src/hotstuff.cpp b/src/hotstuff.cpp index eb9aae4..4a84927 100644 --- a/src/hotstuff.cpp +++ b/src/hotstuff.cpp @@ -326,10 +326,11 @@ void HotStuffBase::print_stat() const { if (conn == nullptr) continue; size_t ns = conn->get_nsent(); size_t nr = conn->get_nrecv(); - conn->clear_nsent(); - conn->clear_nrecv(); - LOG_INFO("%s: %u, %u, %u", - std::string(replica).c_str(), ns, nr, part_fetched_replica[replica]); + size_t nsb = conn->get_nsentb(); + size_t nrb = conn->get_nrecvb(); + conn->clear_msgstat(); + LOG_INFO("%s: %u(%u), %u(%u), %u", + std::string(replica).c_str(), ns, nsb, nr, nrb, part_fetched_replica[replica]); _nsent += ns; _nrecv += nr; part_fetched_replica[replica] = 0; -- cgit v1.2.3-70-g09d2