Browse Source

Fix length call in benchmark example

tags/v0.3.0-rc
Philipp Oppermann 2 years ago
parent
commit
40b991d670
Failed to extract signature
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/benchmark/sink/src/main.rs

+ 1
- 1
examples/benchmark/sink/src/main.rs View File

@@ -22,7 +22,7 @@ fn main() -> eyre::Result<()> {
match event {
Event::Input { id, metadata, data } => {
// check if new size bracket
let data_len = data.map(|d| d.len()).unwrap_or_default();
let data_len = data.len();
if data_len != current_size {
if n > 0 {
record_results(start, current_size, n, latencies, latency);


Loading…
Cancel
Save