diff --git a/crates/librqbit/src/http_api.rs b/crates/librqbit/src/http_api.rs index 6ba2eba..ab20d0b 100644 --- a/crates/librqbit/src/http_api.rs +++ b/crates/librqbit/src/http_api.rs @@ -52,7 +52,7 @@ impl Speed { fn new(mbps: f64) -> Self { Self { mbps, - human_readable: format!("{:.2}Mbps", mbps), + human_readable: format!("{:.2} MiB/s", mbps), } } } @@ -355,7 +355,7 @@ impl HttpApi { return Ok::<_, warp::Rejection>(make_response( 400, "invalid utf-8".into(), - )) + )); } }; let opts = AddTorrentOptions { diff --git a/crates/rqbit/src/main.rs b/crates/rqbit/src/main.rs index ac5e6cd..55bb930 100644 --- a/crates/rqbit/src/main.rs +++ b/crates/rqbit/src/main.rs @@ -216,7 +216,7 @@ async fn async_main(opts: Opts, spawner: BlockingSpawner) -> anyhow::Result<()> (progress as f64 / total as f64) * 100f64 }; info!( - "[{}]: {:.2}% ({:.2}), down speed {:.2} Mbps, fetched {}, remaining {:.2} of {:.2}, uploaded {:.2}, peers: {{live: {}, connecting: {}, queued: {}, seen: {}}}", + "[{}]: {:.2}% ({:.2}), down speed {:.2} MiB/s, fetched {}, remaining {:.2} of {:.2}, uploaded {:.2}, peers: {{live: {}, connecting: {}, queued: {}, seen: {}}}", idx, downloaded_pct, SF::new(progress),