From 42ca9e918a45310b263efe63109336cde30c750b Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 4 Nov 2020 09:10:56 +0100 Subject: [PATCH] sync: improve log format --- src/client/pull.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/pull.rs b/src/client/pull.rs index 0d24d7b9..3ef89b6e 100644 --- a/src/client/pull.rs +++ b/src/client/pull.rs @@ -103,7 +103,7 @@ async fn pull_index_chunks( let bytes = bytes.load(Ordering::SeqCst); - worker.log(format!("downloaded {} bytes ({} MiB/s)", bytes, (bytes as f64)/(1024.0*1024.0*elapsed))); + worker.log(format!("downloaded {} bytes ({:.2} MiB/s)", bytes, (bytes as f64)/(1024.0*1024.0*elapsed))); Ok(()) }