mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
two more thresholds to look at
svn:r6305
This commit is contained in:
parent
1f40ab57d7
commit
9549d81d95
@ -2630,12 +2630,14 @@ compute_recommended_versions(time_t now, int client)
|
||||
if (current && !strcmp(cp, current)) {
|
||||
++n_seen;
|
||||
} else {
|
||||
/* XXX Another case of requiring only half, not more than half -RD */
|
||||
if (n_seen >= n_recent/2 && current)
|
||||
smartlist_add(recommended, current);
|
||||
n_seen = 0;
|
||||
current = cp;
|
||||
}
|
||||
});
|
||||
/* XXX and here -RD */
|
||||
if (n_seen >= n_recent/2 && current)
|
||||
smartlist_add(recommended, current);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user