aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-04-07 12:52:18 -0400
committerDeterminant <[email protected]>2019-04-07 12:52:18 -0400
commit49225da30a16a81f5e07c499af88c95da68b45b1 (patch)
tree55f5ef4e673300fa58555a3160cdce531284e458 /src
parent698a0373f7d72ce0ee0e557ed0352a8594a7a6b0 (diff)
...
Diffstat (limited to 'src')
-rw-r--r--src/hotstuff.cpp9
1 files changed, 5 insertions, 4 deletions
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;