mirror of
https://github.com/Chaoscaot/schemsearch.git
synced 2025-11-05 05:54:02 +01:00
Print Progressbar to stdout
This commit is contained in:
@ -248,7 +248,7 @@ fn main() {
|
||||
|
||||
let bar = ProgressBar::new(schematics.len() as u64);
|
||||
bar.set_style(ProgressStyle::with_template("[{elapsed}, ETA: {eta}] {wide_bar} {pos}/{len} {per_sec}").unwrap());
|
||||
bar.set_draw_target(ProgressDrawTarget::stderr_with_hz(5));
|
||||
bar.set_draw_target(ProgressDrawTarget::stdout_with_hz(5));
|
||||
|
||||
let matches: Vec<SearchResult> = schematics.par_iter().progress_with(bar).map(|schem| {
|
||||
match schem {
|
||||
|
||||
Reference in New Issue
Block a user