From 4b5c0e910375d4173023eec2c16f3038891b03b8 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 20 May 2019 22:09:07 -0400 Subject: [PATCH] Fix minimum length prints --- src/printer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/printer.rs b/src/printer.rs index c7e9023..519494e 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -51,7 +51,7 @@ impl Printer { out.write_all(b"\nNode counts by status:\n").expect("stdout broken?"); for i in 0..AddressState::get_count() { - out.write_all(format!("{}: {}\n", AddressState::from_num(i).unwrap().to_str(), + out.write_all(format!("{:22}: {}\n", AddressState::from_num(i).unwrap().to_str(), store.get_node_count(AddressState::from_num(i).unwrap()) ).as_bytes()).expect("stdout broken?"); } @@ -77,7 +77,7 @@ impl Printer { out.write_all(b"\nRetry times (in seconds):\n").expect("stdout broken?"); for i in 0..AddressState::get_count() { out.write_all(format!( - "{} ({}): {}\n", AddressState::from_num(i).unwrap().to_str(), i, + "{:22} ({}): {}\n", AddressState::from_num(i).unwrap().to_str(), i, store.get_u64(U64Setting::RescanInterval(AddressState::from_num(i).unwrap())) ).as_bytes()).expect("stdout broken?"); } -- 2.30.2