mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Display a progress percentage
This commit is contained in:
parent
5dab435d13
commit
246ad3b06e
1 changed files with 2 additions and 1 deletions
|
@ -664,7 +664,8 @@ fn hair_dryer(
|
|||
}
|
||||
|
||||
if i % 10_000 == 0 {
|
||||
eprintln!("Visited {i}/{total} keys")
|
||||
let perc = (i as f64) / (total as f64) * 100.0;
|
||||
eprintln!("Visited {i}/{total} ({perc:.2}%) keys")
|
||||
}
|
||||
}
|
||||
eprintln!("Done hair drying a total of at least {count} bytes.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue