diff --git a/src/subcommand/info.rs b/src/subcommand/info.rs index e739a0efcb..e122d0e075 100644 --- a/src/subcommand/info.rs +++ b/src/subcommand/info.rs @@ -7,9 +7,9 @@ pub(crate) fn run() -> Result { println!("tree height: {}", stats.tree_height()); println!("free pages: {}", stats.free_pages()); - println!("stored bytes: {}", stats.stored_bytes()); - println!("overhead bytes: {}", stats.overhead_bytes()); - println!("fragmented bytes: {}", stats.fragmented_bytes()); + println!("stored: {}", Bytes(stats.stored_bytes())); + println!("overhead: {}", Bytes(stats.overhead_bytes())); + println!("fragmented: {}", Bytes(stats.fragmented_bytes())); Ok(()) } diff --git a/tests/info.rs b/tests/info.rs index b894bad162..e96f0934ad 100644 --- a/tests/info.rs +++ b/tests/info.rs @@ -10,9 +10,9 @@ fn basic() -> Result { r" tree height: \d+ free pages: \d+ - stored bytes: \d+ - overhead bytes: \d+ - fragmented bytes: \d+ + stored: .* bytes + overhead: .* bytes + fragmented: .* KiB " .unindent(), )