Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) small bugfix regarding peerPingMaxRunning *) beautify log

hermensa2e2d583f9de
diff --git a/source/de/anomic/yacy/yacyCore.java b/source/de/anomic/yacy/yacyCore.java
index c9a02d699..12017f6b4 100644
--- a/source/de/anomic/yacy/yacyCore.java
+++ b/source/de/anomic/yacy/yacyCore.java
@@ -395,7 +395,7 @@ public class yacyCore {
} else {
int diff = peerPingMinDBSize - amIAccessibleDB.size();
if (diff > peerPingMinRunning) {
- diff = Math.max(diff, peerPingMaxRunning);
+ diff = Math.min(diff, peerPingMaxRunning);
if (attempts > diff) { attempts = diff; }
} else {
if (attempts > peerPingMinRunning) { attempts = peerPingMinRunning; }
@@ -530,7 +530,7 @@ public class yacyCore {
}
log.logFine("DBSize before -> after Cleanup: " + dbSize + " -> " + amIAccessibleDB.size());
log.logInfo("PeerPing: I am accessible for " + accessible +
- "peer(s), not accessible for " + notaccessible + " peer(s).");
+ " peer(s), not accessible for " + notaccessible + " peer(s).");
if ((accessible + notaccessible) > 0) {
final String newPeerType;