projects
/
dnsseed-rust
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4b5c0e9
)
Make retry time IDs fixed-length too
author
Matt Corallo
<git@bluematt.me>
Tue, 21 May 2019 02:13:48 +0000
(22:13 -0400)
committer
Matt Corallo
<git@bluematt.me>
Tue, 21 May 2019 02:36:47 +0000
(22:36 -0400)
src/printer.rs
patch
|
blob
|
history
diff --git
a/src/printer.rs
b/src/printer.rs
index 519494ebb28cecdafb944f9f7639258f66aff4da..555fe5ccb9d6b926c73460a204d8a161540d1769 100644
(file)
--- 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!(
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?");
}
store.get_u64(U64Setting::RescanInterval(AddressState::from_num(i).unwrap()))
).as_bytes()).expect("stdout broken?");
}