Преглед на файлове

two more thresholds to look at

svn:r6305
Roger Dingledine преди 19 години
родител
ревизия
9549d81d95
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      src/or/routerlist.c

+ 2 - 0
src/or/routerlist.c

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