From: Mike Perry Date: Wed, 2 Sep 2009 22:29:34 +0000 (-0700) Subject: Resolve mode ties in favor of the higher (slower) mode. X-Git-Tag: tor-0.2.2.2-alpha~24^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=535423a3bb87fcdafc4f25f8a7e3898b127ff77c;p=thirdparty%2Ftor.git Resolve mode ties in favor of the higher (slower) mode. --- diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 0f2972fe6c..0a55d8f86a 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; } }