mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-17 20:00:58 +00:00
Display a progress percentage
This commit is contained in:
@ -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.");
|
||||
|
Reference in New Issue
Block a user