mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
swarm/network: minor fix saturated check
This commit is contained in:
parent
e1878681f7
commit
14e2430cc8
1 changed files with 1 additions and 1 deletions
|
|
@ -836,7 +836,7 @@ func (k *Kademlia) GetHealthInfo(pp *PeerPot) *Health {
|
||||||
|
|
||||||
// check saturation
|
// check saturation
|
||||||
unsaturatedBins := k.getUnsaturatedBins(pp.PeersPerBin, depth)
|
unsaturatedBins := k.getUnsaturatedBins(pp.PeersPerBin, depth)
|
||||||
saturated := len(unsaturatedBins) == 0 && depth == len(pp.PeersPerBin)
|
saturated := depth == len(pp.PeersPerBin) && len(unsaturatedBins) == 0
|
||||||
|
|
||||||
log.Trace(fmt.Sprintf("%08x: healthy: knowNNs: %v, gotNNs: %v, saturated: %v\n", k.base, knownn, gotnn, saturated))
|
log.Trace(fmt.Sprintf("%08x: healthy: knowNNs: %v, gotNNs: %v, saturated: %v\n", k.base, knownn, gotnn, saturated))
|
||||||
return &Health{
|
return &Health{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue