Print more lines of log
[dnsseed-rust] / src / printer.rs
index 519494ebb28cecdafb944f9f7639258f66aff4da..352dc7e4d895852f8d293561c8c98a65358e3884 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} ({}): {}\n", AddressState::from_num(i).unwrap().to_str(), i,
-                                                       store.get_u64(U64Setting::RescanInterval(AddressState::from_num(i).unwrap()))
+                                                       "{: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?");
                                }
 
@@ -112,7 +113,7 @@ impl Printer {
                } else {
                        stats.lines.push_back(line);
                }
-               if stats.lines.len() > 50 {
+               if stats.lines.len() > 75 {
                        stats.lines.pop_front();
                }
        }