mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Make unit tests work.
Still not sure why they generate an empty consensus document.. Too much frobbing going on there.
This commit is contained in:
parent
4311318f7d
commit
0da26162a3
@ -751,6 +751,14 @@ networkstatus_compute_bw_weights_v9(smartlist_t *chunks, int64_t G, int64_t M,
|
|||||||
char buf[512];
|
char buf[512];
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
|
if (G <= 0 || M <= 0 || E <= 0 || D <= 0) {
|
||||||
|
log_warn(LD_DIR, "Consensus with empty bandwidth: "
|
||||||
|
"G="I64_FORMAT" M="I64_FORMAT" E="I64_FORMAT
|
||||||
|
" D="I64_FORMAT" T="I64_FORMAT,
|
||||||
|
G, M, E, D, T);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Computed from cases in 3.4.3 of dir-spec.txt
|
* Computed from cases in 3.4.3 of dir-spec.txt
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user