From: Matt Corallo Date: Tue, 21 May 2019 02:13:48 +0000 (-0400) Subject: Make retry time IDs fixed-length too X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=630014412395b70195a4b75dde2b287f9d23999d;p=dnsseed-rust Make retry time IDs fixed-length too --- diff --git a/src/printer.rs b/src/printer.rs index 519494e..555fe5c 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -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!( - "{:22} ({}): {}\n", AddressState::from_num(i).unwrap().to_str(), i, + "{:22} ({:2}): {}\n", AddressState::from_num(i).unwrap().to_str(), i, store.get_u64(U64Setting::RescanInterval(AddressState::from_num(i).unwrap())) ).as_bytes()).expect("stdout broken?"); }