Session speed estimator
This commit is contained in:
parent
0fdf6ad429
commit
06e88c138f
3 changed files with 60 additions and 8 deletions
|
|
@ -79,6 +79,7 @@ fn compute_chunk_have_status(lengths: &Lengths, have_pieces: &BS) -> anyhow::Res
|
|||
lengths.total_pieces()
|
||||
);
|
||||
}
|
||||
|
||||
let required_size = lengths.chunk_bitfield_bytes();
|
||||
let vec = vec![0u8; required_size];
|
||||
let mut chunk_bf = BF::from_boxed_slice(vec.into_boxed_slice());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue