mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Whitespace fixes from previous mechanical search-and-replaces
This commit is contained in:
parent
f66f9c82e9
commit
043e9b0151
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user