diff --git a/plugins/portcheck/plugin.go b/plugins/portcheck/plugin.go index 6bcf907e8491d9cde50d414224bee4ed9d00e1a6..fb1312bc73eb15fefc5c22033db5d0250a2e7659 100644 --- a/plugins/portcheck/plugin.go +++ b/plugins/portcheck/plugin.go @@ -66,7 +66,7 @@ func checkAutopeeringConnection() { disc.Start(srv) defer disc.Close() - + const retryCount = 10 entryNodes := autopeering.Discovery().GetMasterPeers() for i := 0; i < retryCount; i++ { @@ -75,7 +75,7 @@ func checkAutopeeringConnection() { log.Infof("Pong received from %s", randEntryNode.IP()) break } - log.Warnf("Error pinging entry node %s (attempts left %d/%d): %s", randEntryNode.IP(), retryCount-i+1, retryCount, err) + log.Warnf("Error pinging entry node %s (attempts left %d): %s", randEntryNode.IP(), retryCount-i-1, retryCount, err) } if err != nil {