]> git.bitcoin.ninja Git - dnsseed-rust/commitdiff
Also print hours for scan times
authorMatt Corallo <git@bluematt.me>
Tue, 21 May 2019 02:24:09 +0000 (22:24 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 21 May 2019 02:36:47 +0000 (22:36 -0400)
src/printer.rs

index 555fe5ccb9d6b926c73460a204d8a161540d1769..328207a924482536573895c8b5e886828bdd31a2 100644 (file)
@@ -76,9 +76,10 @@ impl Printer {
 
                                out.write_all(b"\nRetry times (in seconds):\n").expect("stdout broken?");
                                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}): {}\n", AddressState::from_num(i).unwrap().to_str(), i,
-                                                       store.get_u64(U64Setting::RescanInterval(AddressState::from_num(i).unwrap()))
+                                                       "{:22} ({:2}): {:5} (ie {} min, {} hrs)\n", AddressState::from_num(i).unwrap().to_str(), i,
+                                                       scan_secs, scan_secs / 60, scan_secs / 60 / 60,
                                                        ).as_bytes()).expect("stdout broken?");
                                }