mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-13 14:20:14 +08:00
Display a progress percentage
This commit is contained in:
parent
5dab435d13
commit
246ad3b06e
@ -664,7 +664,8 @@ fn hair_dryer(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if i % 10_000 == 0 {
|
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.");
|
eprintln!("Done hair drying a total of at least {count} bytes.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user