Commit 535423a3 authored by Mike Perry's avatar Mike Perry
Browse files

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

parent 82103361
Loading
Loading
Loading
Loading
+1 −1
Changes for src/or/circuitbuild.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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;
    }
  }