diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/or/circpathbias.c | 2 | ||||
-rw-r--r-- | src/or/entrynodes.c | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/or/circpathbias.c b/src/or/circpathbias.c index 3df68b8744..be1146513e 100644 --- a/src/or/circpathbias.c +++ b/src/or/circpathbias.c @@ -1355,7 +1355,7 @@ pathbias_measure_close_rate(entry_guard_t *guard) { const or_options_t *options = get_options(); guard_pathbias_t *pb = entry_guard_get_pathbias_state(guard); - + if (pb->circ_attempts > pathbias_get_min_circs(options)) { /* Note: We rely on the < comparison here to allow us to set a 0 * rate and disable the feature entirely. If refactoring, don't diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c index 90918fa1dc..7890f83aaa 100644 --- a/src/or/entrynodes.c +++ b/src/or/entrynodes.c @@ -1583,7 +1583,8 @@ entry_guards_parse_state_for_guard_selection( node->pb.path_bias_disabled = 1; log_info(LD_GENERAL, "Path use bias is too high (%f/%f); disabling node %s", - node->pb.circ_successes, node->pb.circ_attempts, node->nickname); + node->pb.circ_successes, node->pb.circ_attempts, + node->nickname); } } else if (!strcasecmp(line->key, "EntryGuardPathBias")) { const or_options_t *options = get_options(); @@ -1642,7 +1643,8 @@ entry_guards_parse_state_for_guard_selection( node->pb.unusable_circuits = unusable; log_info(LD_GENERAL, "Read %f/%f path bias for node %s", - node->pb.circ_successes, node->pb.circ_attempts, node->nickname); + node->pb.circ_successes, node->pb.circ_attempts, + node->nickname); /* Note: We rely on the < comparison here to allow us to set a 0 * rate and disable the feature entirely. If refactoring, don't * change to <= */ @@ -1652,7 +1654,8 @@ entry_guards_parse_state_for_guard_selection( node->pb.path_bias_disabled = 1; log_info(LD_GENERAL, "Path bias is too high (%f/%f); disabling node %s", - node->pb.circ_successes, node->pb.circ_attempts, node->nickname); + node->pb.circ_successes, node->pb.circ_attempts, + node->nickname); } } else { |