diff options
| author | Patrick Strateman <[email protected]> | 2015-08-25 16:31:13 -0700 |
|---|---|---|
| committer | Patrick Strateman <[email protected]> | 2015-08-25 16:31:13 -0700 |
| commit | 000c18aaceeebdcaf65508fcdc3d00397971dcae (patch) | |
| tree | fd59febebcce3aa0ba7cb550aa5e5765b782e264 /src/net.cpp | |
| parent | Acquire cs_vNodes before changing refrence counts (diff) | |
| download | discoin-000c18aaceeebdcaf65508fcdc3d00397971dcae.tar.xz discoin-000c18aaceeebdcaf65508fcdc3d00397971dcae.zip | |
Fix comment
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index e1b0e83e9..d266b2f21 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -891,7 +891,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()); |