Преглед изворни кода

Resolve mode ties in favor of the higher (slower) mode.

Mike Perry пре 16 година
родитељ
комит
535423a3bb
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/or/circuitbuild.c

+ 1 - 1
src/or/circuitbuild.c

@@ -224,7 +224,7 @@ circuit_build_times_mode(circuit_build_times_t *cbt)
   uint32_t *histogram = circuit_build_times_create_histogram(cbt, &nbins);
 
   for (i = 0; i < nbins; i++) {
-    if (histogram[i] > histogram[max_bin]) {
+    if (histogram[i] >= histogram[max_bin]) {
       max_bin = i;
     }
   }