mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
Resolve mode ties in favor of the higher (slower) mode.
This commit is contained in:
parent
8210336182
commit
535423a3bb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue