mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
formatting cleanups
svn:r11273
This commit is contained in:
parent
df98447be5
commit
da1485088c
@ -4,6 +4,8 @@ Changes in version 0.2.0.6-alpha - 2007-??-??
|
|||||||
mean-times-between-failures. When we have 4 or more days of data,
|
mean-times-between-failures. When we have 4 or more days of data,
|
||||||
use measured MTBF rather than declared uptime to decide whether
|
use measured MTBF rather than declared uptime to decide whether
|
||||||
to call a router Stable. Implements proposal 108.
|
to call a router Stable. Implements proposal 108.
|
||||||
|
|
||||||
|
o Major bugfixes (load balancing):
|
||||||
- When choosing nodes for non-guard positions, weight guards
|
- When choosing nodes for non-guard positions, weight guards
|
||||||
proportionally less, since they already have enough load. Patch
|
proportionally less, since they already have enough load. Patch
|
||||||
from Mike Perry.
|
from Mike Perry.
|
||||||
|
@ -4359,9 +4359,9 @@ or_state_validate(or_state_t *old_state, or_state_t *state,
|
|||||||
"file. Proceeding anyway.", state->TorVersion);
|
"file. Proceeding anyway.", state->TorVersion);
|
||||||
} else { /* take action based on v */
|
} else { /* take action based on v */
|
||||||
if ((tor_version_as_new_as(state->TorVersion, "0.1.1.10-alpha") &&
|
if ((tor_version_as_new_as(state->TorVersion, "0.1.1.10-alpha") &&
|
||||||
!tor_version_as_new_as(state->TorVersion, "0.1.2.16-dev"))
|
!tor_version_as_new_as(state->TorVersion, "0.1.2.16-dev")) ||
|
||||||
|| (tor_version_as_new_as(state->TorVersion, "0.2.0.0-alpha") &&
|
(tor_version_as_new_as(state->TorVersion, "0.2.0.0-alpha") &&
|
||||||
!tor_version_as_new_as(state->TorVersion, "0.2.0.6-alpha"))) {
|
!tor_version_as_new_as(state->TorVersion, "0.2.0.6-alpha"))) {
|
||||||
log_notice(LD_CONFIG, "Detected state file from old version '%s'. "
|
log_notice(LD_CONFIG, "Detected state file from old version '%s'. "
|
||||||
"Choosing new entry guards for you.",
|
"Choosing new entry guards for you.",
|
||||||
state->TorVersion);
|
state->TorVersion);
|
||||||
|
@ -1320,7 +1320,7 @@ smartlist_choose_by_bandwidth(smartlist_t *sl, bandwidth_weight_rule_t rule,
|
|||||||
/* First count the total bandwidth weight, and make a list
|
/* First count the total bandwidth weight, and make a list
|
||||||
* of each value. <0 means "unknown; no routerinfo." We use the
|
* of each value. <0 means "unknown; no routerinfo." We use the
|
||||||
* bits of negative values to remember whether the router was fast (-x)&1
|
* bits of negative values to remember whether the router was fast (-x)&1
|
||||||
* and whether it was an exit (-x)&2. Yes, it's a hack. */
|
* and whether it was an exit (-x)&2 or guard (-x)&4. Yes, it's a hack. */
|
||||||
bandwidths = tor_malloc(sizeof(int32_t)*smartlist_len(sl));
|
bandwidths = tor_malloc(sizeof(int32_t)*smartlist_len(sl));
|
||||||
exit_bits = bitarray_init_zero(smartlist_len(sl));
|
exit_bits = bitarray_init_zero(smartlist_len(sl));
|
||||||
guard_bits = bitarray_init_zero(smartlist_len(sl));
|
guard_bits = bitarray_init_zero(smartlist_len(sl));
|
||||||
|
Loading…
Reference in New Issue
Block a user