mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Fix erroneous spaces in circuitmux_ewma.c
This commit is contained in:
parent
dccac40e69
commit
52b4b7e492
@ -423,7 +423,7 @@ ewma_cmp_cmux(circuitmux_t *cmux_1, circuitmux_policy_data_t *pol_data_1,
|
|||||||
/* Pick whichever one has the better best circuit */
|
/* Pick whichever one has the better best circuit */
|
||||||
return compare_cell_ewma_counts(ce1, ce2);
|
return compare_cell_ewma_counts(ce1, ce2);
|
||||||
} else {
|
} else {
|
||||||
if (ce1 != NULL ) {
|
if (ce1 != NULL) {
|
||||||
/* We only have a circuit on cmux_1, so prefer it */
|
/* We only have a circuit on cmux_1, so prefer it */
|
||||||
return -1;
|
return -1;
|
||||||
} else if (ce2 != NULL) {
|
} else if (ce2 != NULL) {
|
||||||
@ -609,7 +609,7 @@ cmux_ewma_set_options(const or_options_t *options,
|
|||||||
/* convert halflife into halflife-per-tick. */
|
/* convert halflife into halflife-per-tick. */
|
||||||
halflife /= EWMA_TICK_LEN;
|
halflife /= EWMA_TICK_LEN;
|
||||||
/* compute per-tick scale factor. */
|
/* compute per-tick scale factor. */
|
||||||
ewma_scale_factor = exp( LOG_ONEHALF / halflife );
|
ewma_scale_factor = exp(LOG_ONEHALF / halflife);
|
||||||
log_info(LD_OR,
|
log_info(LD_OR,
|
||||||
"Enabled cell_ewma algorithm because of value in %s; "
|
"Enabled cell_ewma algorithm because of value in %s; "
|
||||||
"scale factor is %f per %d seconds",
|
"scale factor is %f per %d seconds",
|
||||||
|
Loading…
Reference in New Issue
Block a user