From b2be60a34779e418faf3cc64461db13d35e86098 Mon Sep 17 00:00:00 2001 From: sn-anssi Date: Mon, 8 Jul 2024 11:50:51 +0200 Subject: [PATCH] cargo fmt --- src/bin/diode-send.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/diode-send.rs b/src/bin/diode-send.rs index e9ad269..a0da03e 100644 --- a/src/bin/diode-send.rs +++ b/src/bin/diode-send.rs @@ -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::("bandwidth_limit").expect("default");// Target bandwidth in Mbps + let bandwidth_limit = { + let target_bandwidth_mbps = *args.get_one::("bandwidth_limit").expect("default"); // Target bandwidth in Mbps target_bandwidth_mbps * 1_000_000.0 / 8.0 // Convert Mbps to bytes per second };