feat(list): updated progress percentage

This commit is contained in:
Patrick Hintermayer 2021-04-19 09:39:05 +02:00
parent bd48544e25
commit 1c6f7e4b7b
No known key found for this signature in database
GPG Key ID: B62C9E311508AF4E

View File

@ -179,7 +179,7 @@ fn main() {
} }
} }
}); });
let percentage_progress = exercises_done as f32 / exercises.len() as f32; let percentage_progress = exercises_done as f32 / exercises.len() as f32 * 100.0;
println!( println!(
"Progress: You completed {} / {} exercises ({:.2} %).", "Progress: You completed {} / {} exercises ({:.2} %).",
exercises_done, exercises_done,