projects
/
dnsseed-rust
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
804547d
)
Print time more logically
author
Matt Corallo
<git@bluematt.me>
Tue, 21 May 2019 02:38:46 +0000
(22:38 -0400)
committer
Matt Corallo
<git@bluematt.me>
Tue, 21 May 2019 02:38:46 +0000
(22:38 -0400)
src/printer.rs
patch
|
blob
|
history
diff --git
a/src/printer.rs
b/src/printer.rs
index 328207a924482536573895c8b5e886828bdd31a2..0d928b0328b1fa21f46621d8c216ccd3a9d5475d 100644
(file)
--- a/
src/printer.rs
+++ b/
src/printer.rs
@@
-78,8
+78,8
@@
impl Printer {
for i in 0..AddressState::get_count() {
let scan_secs = store.get_u64(U64Setting::RescanInterval(AddressState::from_num(i).unwrap()));
out.write_all(format!(
for i in 0..AddressState::get_count() {
let scan_secs = store.get_u64(U64Setting::RescanInterval(AddressState::from_num(i).unwrap()));
out.write_all(format!(
- "{:22} ({:2}): {:5} (ie {}
min, {} hrs
)\n", AddressState::from_num(i).unwrap().to_str(), i,
- scan_secs, scan_secs / 60
, scan_secs / 60 /
60,
+ "{:22} ({:2}): {:5} (ie {}
hrs, {} min
)\n", AddressState::from_num(i).unwrap().to_str(), i,
+ scan_secs, scan_secs / 60
/ 60, (scan_secs / 60) %
60,
).as_bytes()).expect("stdout broken?");
}
).as_bytes()).expect("stdout broken?");
}