Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
r3dlight committed Jul 8, 2024
1 parent ac0bb67 commit b2be60a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/diode-send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ fn command_args() -> Config {
(hb != 0).then(|| time::Duration::from_secs(hb))
};

let bandwidth_limit = {
let target_bandwidth_mbps = *args.get_one::<f64>("bandwidth_limit").expect("default");// Target bandwidth in Mbps
let bandwidth_limit = {
let target_bandwidth_mbps = *args.get_one::<f64>("bandwidth_limit").expect("default"); // Target bandwidth in Mbps
target_bandwidth_mbps * 1_000_000.0 / 8.0 // Convert Mbps to bytes per second
};

Expand Down

0 comments on commit b2be60a

Please sign in to comment.