Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #158

Merged
merged 2 commits into from
Nov 26, 2023
Merged

Fixes #158

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build: pre

.PHONY: pre
pre:
cargo deny check licenses
cargo deny --all-features check licenses
cargo fmt --all -- --check
cargo clippy --all

Expand Down
2 changes: 1 addition & 1 deletion benches/decode_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn benchmark(symbol_size: u16, overhead: f64) -> u64 {
let config = ObjectTransmissionInformation::new(0, symbol_size, 0, 1, 1);
let encoder = SourceBlockEncoder::new2(1, &config, &data);
let elements_and_overhead = (symbol_count as f64 * (1.0 + overhead)) as u32;
let mut packets = encoder.repair_packets(0, (iterations as u32 * elements_and_overhead));
let mut packets = encoder.repair_packets(0, iterations as u32 * elements_and_overhead);
let now = Instant::now();
for _ in 0..iterations {
let mut decoder = SourceBlockDecoder::new2(1, &config, elements as u64);
Expand Down
2 changes: 1 addition & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ allow = [
# "BSD-2-Clause",
# "BSD-3-Clause",
"Apache-2.0",
#"Apache-2.0 WITH LLVM-exception",
"Apache-2.0 WITH LLVM-exception",
]
# List of explictly disallowed licenses
# See https://spdx.org/licenses/ for list of possible licenses
Expand Down
2 changes: 1 addition & 1 deletion src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ mod codec_tests {
let config = ObjectTransmissionInformation::new(0, symbol_size, 0, 1, 1);
let encoder = SourceBlockEncoder::new2(1, &config, &data);
let elements_and_overhead = (symbol_count as f64 * (1.0 + overhead)) as u32;
let mut packets = encoder.repair_packets(0, (iterations as u32 * elements_and_overhead));
let mut packets = encoder.repair_packets(0, iterations as u32 * elements_and_overhead);
for _ in 0..iterations {
let mut decoder = SourceBlockDecoder::new2(1, &config, elements as u64);
let start = packets.len() - elements_and_overhead as usize;
Expand Down
Loading