diff options
author | Mike Perry <mikeperry-git@fscked.org> | 2012-10-25 14:14:28 -0700 |
---|---|---|
committer | Mike Perry <mikeperry-git@fscked.org> | 2012-12-07 15:28:37 -0800 |
commit | 192996690cd7bc3ae6c159901a3a9a6232e74514 (patch) | |
tree | 26c00f481c8649482e2a0b7ed4e087f4607fa4d9 /src/or | |
parent | a54873648f226fc9b16a3c1c192b0bae6559dbbc (diff) | |
download | tor-192996690cd7bc3ae6c159901a3a9a6232e74514.tar.gz tor-192996690cd7bc3ae6c159901a3a9a6232e74514.zip |
Fix spaces.
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/circuitbuild.c | 6 | ||||
-rw-r--r-- | src/or/entrynodes.h | 7 |
2 files changed, 5 insertions, 8 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 299ca29c0c..4e9a9747fa 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1137,7 +1137,6 @@ pathbias_should_count(origin_circuit_t *circ) return 1; } - /** * Check our circuit state to see if this is a successful first hop. * If so, record it in the current guard's path bias first_hop count. @@ -1326,7 +1325,7 @@ pathbias_count_success(origin_circuit_t *circ) void pathbias_count_timeout(origin_circuit_t *circ) { - if(!pathbias_should_count(circ)) { + if (!pathbias_should_count(circ)) { return; } entry_guard_t *guard = @@ -1357,7 +1356,7 @@ entry_guard_inc_first_hop_count(entry_guard_t *guard) < pathbias_get_crit_rate(options) && !guard->path_bias_crited) { guard->path_bias_crited = 1; - + if (pathbias_get_dropguards(options)) { /* This message is currently disabled by default. */ log_warn(LD_PROTOCOL, @@ -1407,7 +1406,6 @@ entry_guard_inc_first_hop_count(entry_guard_t *guard) guard->circuit_successes, guard->first_hops, guard->timeouts, (long)circ_times.close_ms/1000); } - } /* If we get a ton of circuits, just scale everything down */ diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h index 6fdb3f7585..dfabacb093 100644 --- a/src/or/entrynodes.h +++ b/src/or/entrynodes.h @@ -31,8 +31,8 @@ typedef struct entry_guard_t { * router, 1 if we have. */ unsigned int can_retry : 1; /**< Should we retry connecting to this entry, * in spite of having it marked as unreachable?*/ - unsigned int path_bias_noticed : 1; /**< Did we alert the user about path bias - * for this node already? */ + unsigned int path_bias_noticed : 1; /**< Did we alert the user about path + * bias for this node already? */ unsigned int path_bias_warned : 1; /**< Did we alert the user about path bias * for this node already? */ unsigned int path_bias_crited : 1; /**< Did we alert the user about path bias @@ -51,8 +51,7 @@ typedef struct entry_guard_t { unsigned first_hops; /**< Number of first hops this guard has completed */ unsigned circuit_successes; /**< Number of successfully built circuits using * this guard as first hop. */ - unsigned timeouts; /**< Number of 'right-censored' timeouts - for this guard. */ + unsigned timeouts; /**< Number of 'right-censored' timeouts for this guard.*/ } entry_guard_t; entry_guard_t *entry_guard_get_by_id_digest(const char *digest); |