Display a progress percentage

This commit is contained in:
Kerollmops 2025-02-12 09:55:03 +01:00
parent 5dab435d13
commit 246ad3b06e
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -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.");