Explorar o código

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

Mike Perry %!s(int64=16) %!d(string=hai) anos
pai
achega
535423a3bb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
     }
   }