tape: use MB/s for backup speed (to match drive speed specification)

This commit is contained in:
Dietmar Maurer 2021-03-16 08:50:46 +01:00
parent 5c4755ad08
commit 776dabfb2e

View File

@ -521,10 +521,10 @@ impl PoolWriter {
let elapsed = start_time.elapsed()?.as_secs_f64(); let elapsed = start_time.elapsed()?.as_secs_f64();
worker.log(format!( worker.log(format!(
"wrote {} chunks ({:.2} MiB at {:.2} MiB/s)", "wrote {} chunks ({:.2} MB at {:.2} MB/s)",
saved_chunks.len(), saved_chunks.len(),
bytes_written as f64 / (1024.0*1024.0), bytes_written as f64 /1_000_000.0,
(bytes_written as f64)/(1024.0*1024.0*elapsed), (bytes_written as f64)/(1_000_000.0*elapsed),
)); ));
let request_sync = status.bytes_written >= COMMIT_BLOCK_SIZE; let request_sync = status.bytes_written >= COMMIT_BLOCK_SIZE;