From 535423a3bb87fcdafc4f25f8a7e3898b127ff77c Mon Sep 17 00:00:00 2001 From: Mike Perry Date: Wed, 2 Sep 2009 15:29:34 -0700 Subject: [PATCH] Resolve mode ties in favor of the higher (slower) mode. --- src/or/circuitbuild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }