*) small bugfix regarding peerPingMaxRunning

*) beautify log



git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1419 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
hermens 19 years ago
parent b4e2efef10
commit a2e2d583f9

@ -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;

Loading…
Cancel
Save