diff options
author | Mike Perry <mikeperry-git@fscked.org> | 2012-12-09 20:20:44 -0800 |
---|---|---|
committer | Mike Perry <mikeperry-git@fscked.org> | 2012-12-09 20:24:50 -0800 |
commit | ab1fce5c19b64b3f1ba15d6ffa1f0d11d6a959c3 (patch) | |
tree | 8e7cec892152d25ce260df493189fa0eee8b5b47 /src/or/entrynodes.c | |
parent | a90f165b83bc1603873308d7918e99057afdf72a (diff) | |
download | tor-ab1fce5c19b64b3f1ba15d6ffa1f0d11d6a959c3.tar tor-ab1fce5c19b64b3f1ba15d6ffa1f0d11d6a959c3.tar.gz |
Also shorten circuit_successes to circ_successes.
For consistency and great justice.
Ok, mostly consistency.
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r-- | src/or/entrynodes.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c index 14a1e3c7f..84764d186 100644 --- a/src/or/entrynodes.c +++ b/src/or/entrynodes.c @@ -1051,7 +1051,7 @@ entry_guards_parse_state(or_state_t *state, int set, char **msg) } node->circ_attempts = hop_cnt; - node->circuit_successes = success_cnt; + node->circ_successes = success_cnt; node->successful_circuits_closed = successful_closed; node->timeouts = timeouts; @@ -1059,17 +1059,17 @@ entry_guards_parse_state(or_state_t *state, int set, char **msg) node->unusable_circuits = unusable; log_info(LD_GENERAL, "Read %u/%u path bias for node %s", - node->circuit_successes, node->circ_attempts, node->nickname); + node->circ_successes, node->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 <= */ - if ((node->circuit_successes/((double)node->circ_attempts) + if ((node->circ_successes/((double)node->circ_attempts) < pathbias_get_extreme_rate(options)) && pathbias_get_dropguards(options)) { node->path_bias_disabled = 1; log_info(LD_GENERAL, "Path bias is too high (%u/%u); disabling node %s", - node->circuit_successes, node->circ_attempts, node->nickname); + node->circ_successes, node->circ_attempts, node->nickname); } } else { @@ -1199,7 +1199,7 @@ entry_guards_update_state(or_state_t *state) * collapsed_circuits + * unusable_circuits */ tor_asprintf(&line->value, "%u %u %u %u %u %u", - e->circ_attempts, e->circuit_successes, + e->circ_attempts, e->circ_successes, pathbias_get_closed_count(e), e->collapsed_circuits, e->unusable_circuits, e->timeouts); next = &(line->next); |