mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Resolve mode ties in favor of the higher (slower) mode.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user