mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +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();
|
const or_options_t *options = get_options();
|
||||||
guard_pathbias_t *pb = entry_guard_get_pathbias_state(guard);
|
guard_pathbias_t *pb = entry_guard_get_pathbias_state(guard);
|
||||||
|
|
||||||
if (pb->circ_attempts > pathbias_get_min_circs(options)) {
|
if (pb->circ_attempts > pathbias_get_min_circs(options)) {
|
||||||
/* Note: We rely on the < comparison here to allow us to set a 0
|
/* Note: We rely on the < comparison here to allow us to set a 0
|
||||||
* rate and disable the feature entirely. If refactoring, don't
|
* 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;
|
node->pb.path_bias_disabled = 1;
|
||||||
log_info(LD_GENERAL,
|
log_info(LD_GENERAL,
|
||||||
"Path use bias is too high (%f/%f); disabling node %s",
|
"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")) {
|
} else if (!strcasecmp(line->key, "EntryGuardPathBias")) {
|
||||||
const or_options_t *options = get_options();
|
const or_options_t *options = get_options();
|
||||||
@ -1642,7 +1643,8 @@ entry_guards_parse_state_for_guard_selection(
|
|||||||
node->pb.unusable_circuits = unusable;
|
node->pb.unusable_circuits = unusable;
|
||||||
|
|
||||||
log_info(LD_GENERAL, "Read %f/%f path bias for node %s",
|
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
|
/* Note: We rely on the < comparison here to allow us to set a 0
|
||||||
* rate and disable the feature entirely. If refactoring, don't
|
* rate and disable the feature entirely. If refactoring, don't
|
||||||
* change to <= */
|
* change to <= */
|
||||||
@ -1652,7 +1654,8 @@ entry_guards_parse_state_for_guard_selection(
|
|||||||
node->pb.path_bias_disabled = 1;
|
node->pb.path_bias_disabled = 1;
|
||||||
log_info(LD_GENERAL,
|
log_info(LD_GENERAL,
|
||||||
"Path bias is too high (%f/%f); disabling node %s",
|
"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 {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user