Mirror von
https://github.com/Chaoscaot/schemsearch
synchronisiert 2024-11-19 10:20:08 +01:00
Remove Timer from Progressbar
Dieser Commit ist enthalten in:
Ursprung
e4b26755ea
Commit
64158cf45b
@ -248,7 +248,7 @@ fn main() {
|
|||||||
|
|
||||||
let bar = ProgressBar::new(schematics.len() as u64);
|
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_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::stderr_with_hz(5));
|
||||||
|
|
||||||
let matches: Vec<SearchResult> = schematics.par_iter().progress_with(bar).map(|schem| {
|
let matches: Vec<SearchResult> = schematics.par_iter().progress_with(bar).map(|schem| {
|
||||||
match schem {
|
match schem {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren