]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Resolve mode ties in favor of the higher (slower) mode.
authorMike Perry <mikeperry-git@fscked.org>
Wed, 2 Sep 2009 22:29:34 +0000 (15:29 -0700)
committerMike Perry <mikeperry-git@fscked.org>
Wed, 16 Sep 2009 22:52:04 +0000 (15:52 -0700)
src/or/circuitbuild.c

index 0f2972fe6c4079b5691319b236f77fbced09b2f0..0a55d8f86a8ee6810f36cbbd13967ecb0beeb45c 100644 (file)
@@ -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;
     }
   }