X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fprinter.rs;h=d9cf3752aed96dc3c4e4f4a2e8cef63bf7ab5de6;hb=8ee71e52b8d5c67e05f4d6408a51e4d59901d618;hp=e16bfbb42bb644e3dff324bb10333453261f6b0f;hpb=479a29348b70bdfbf07015e88b13f3b98bd1e3b4;p=dnsseed-rust diff --git a/src/printer.rs b/src/printer.rs index e16bfbb..d9cf375 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -65,9 +65,14 @@ impl Printer { store.get_node_count(AddressState::from_num(i).unwrap()) ).as_bytes()).expect("stdout broken?"); } + let generations = store.get_bloom_node_count(); + out.write_all(b"Bloom filter generations contain:").expect("stdout broken?"); + for generation in &generations { + out.write_all(format!(" {}", generation).as_bytes()).expect("stdout broken?"); + } out.write_all(format!( - "\nCurrent connections open/in progress: {}\n", stats.connection_count).as_bytes()).expect("stdout broken?"); + "\n\nCurrent connections open/in progress: {}\n", stats.connection_count).as_bytes()).expect("stdout broken?"); out.write_all(format!( "Current block count: {}\n", stats.header_count).as_bytes()).expect("stdout broken?"); @@ -126,7 +131,7 @@ impl Printer { } else { stats.lines.push_back(line); } - if stats.lines.len() > 75 { + if stats.lines.len() > 150 { stats.lines.pop_front(); } }