]> Git Repo - VerusCoin.git/commitdiff
Fix comment
authorPatrick Strateman <[email protected]>
Tue, 25 Aug 2015 23:31:13 +0000 (16:31 -0700)
committerTaylor Hornby <[email protected]>
Tue, 16 Aug 2016 01:38:29 +0000 (19:38 -0600)
src/net.cpp

index e1b6176f3456db2c262e2c88f0836c9a50dbf916..392bbec87198430e387d16a216bed925b23ff3b4 100644 (file)
@@ -787,7 +787,7 @@ static bool AttemptToEvictConnection(bool fPreferNewConnection) {
 
     if (vEvictionCandidates.empty()) return false;
 
-    // Protect the 64 nodes which have been connected the longest.
+    // Protect the half of the remaining nodes which have been connected the longest.
     // This replicates the existing implicit behavior.
     std::sort(vEvictionCandidates.begin(), vEvictionCandidates.end(), ReverseCompareNodeTimeConnected);
     vEvictionCandidates.erase(vEvictionCandidates.end() - static_cast<int>(vEvictionCandidates.size() / 2), vEvictionCandidates.end());
This page took 0.027026 seconds and 4 git commands to generate.