[or-cvs] [tor/master] Resolve mode ties in favor of the higher (slower) mode.

arma at seul.org arma at seul.org
Thu Sep 17 01:46:25 UTC 2009


Author: Mike Perry <mikeperry-git at fscked.org>
Date: Wed, 2 Sep 2009 15:29:34 -0700
Subject: Resolve mode ties in favor of the higher (slower) mode.
Commit: 535423a3bb87fcdafc4f25f8a7e3898b127ff77c

---
 src/or/circuitbuild.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 0f2972f..0a55d8f 100644
--- a/src/or/circuitbuild.c
+++ b/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;
     }
   }
-- 
1.5.6.5




More information about the tor-commits mailing list