From 69278e6e87c5bb19cbbc1d58934493ee82fa42a5 Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 30 Oct 2017 11:07:36 +0100 Subject: [PATCH] only print non empty buckets --- libbitdht/src/bitdht/bdpeer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libbitdht/src/bitdht/bdpeer.cc b/libbitdht/src/bitdht/bdpeer.cc index 1eb9077b4..e15eb2aa3 100644 --- a/libbitdht/src/bitdht/bdpeer.cc +++ b/libbitdht/src/bitdht/bdpeer.cc @@ -1080,7 +1080,8 @@ uint32_t bdSpace::calcNetworkSizeWithFlag(uint32_t withFlag) count++; } - std::cerr << " Bucket " << shift << ": " << size << " / " << mFns->bdNodesPerBucket() << " peers. no_nets=" << no_nets << ". no_peers=" << no_peers << "." << std::endl; + if(size > 0) + std::cerr << " Bucket " << shift << ": " << size << " / " << mFns->bdNodesPerBucket() << " peers. no_nets=" << no_nets << ". no_peers=" << no_peers << "." << std::endl; }