*) 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 { } else {
int diff = peerPingMinDBSize - amIAccessibleDB.size(); int diff = peerPingMinDBSize - amIAccessibleDB.size();
if (diff > peerPingMinRunning) { if (diff > peerPingMinRunning) {
diff = Math.max(diff, peerPingMaxRunning); diff = Math.min(diff, peerPingMaxRunning);
if (attempts > diff) { attempts = diff; } if (attempts > diff) { attempts = diff; }
} else { } else {
if (attempts > peerPingMinRunning) { attempts = peerPingMinRunning; } if (attempts > peerPingMinRunning) { attempts = peerPingMinRunning; }

Loading…
Cancel
Save