- out.write_all(format!(
- "\nCurrent connections open/in progress: {}\n", stats.connection_count).as_bytes()).expect("stdout broken?");
- out.write_all(format!(
- "Connections opened each second: {} (\"c x\" to change to x seconds)\n", store.get_u64(U64Setting::ConnsPerSec)
- ).as_bytes()).expect("stdout broken?");
- out.write_all(format!(
- "Current block count: {}\n", stats.header_count).as_bytes()).expect("stdout broken?");
-
- out.write_all(format!(
- "Timeout for full run (in seconds): {} (\"t x\" to change to x seconds)\n", store.get_u64(U64Setting::RunTimeout)
- ).as_bytes()).expect("stdout broken?");
- out.write_all(format!(
- "Minimum protocol version: {} (\"v x\" to change value to x)\n", store.get_u64(U64Setting::MinProtocolVersion)
- ).as_bytes()).expect("stdout broken?");
- out.write_all(format!(
- "Subversion match regex: {} (\"s x\" to change value to x)\n", store.get_regex(RegexSetting::SubverRegex).as_str()
- ).as_bytes()).expect("stdout broken?");
-
- out.write_all(b"\nRetry times (in seconds):\n").expect("stdout broken?");
- for i in 0..AddressState::get_count() {
+ 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}): {: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?");
+ }
+