Skip to content

Commit

Permalink
inclusive range maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
dadleyy committed Nov 12, 2022
1 parent b0e5680 commit 2be08ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async fn run(arguments: CommandLineArguments) -> io::Result<()> {
let seconds_since = before.duration_since(last_debug).as_secs();
let mut writable_frame = frame_locker.write().await;

let copied_buffer = buffer[0..(meta.bytesused as usize)].to_vec();
let copied_buffer = buffer[0..=(meta.bytesused as usize)].to_vec();

*writable_frame = (std::time::Instant::now(), copied_buffer);

Expand Down

0 comments on commit 2be08ad

Please sign in to comment.