mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Correct dash count
This commit is contained in:
parent
51a82a5161
commit
e8831fdcb8
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ fn get_live_id(id: i64) -> i64 {
|
|||
fn get_pass_percent(failed: i64, pass: i64) -> String {
|
||||
let total = (failed + pass) as f64;
|
||||
if failed + pass == 0 {
|
||||
return String::from("-/-%");
|
||||
return String::from("--/--%");
|
||||
}
|
||||
let pass = pass as f64;
|
||||
format!("{:.2}%", pass / total * 100.0)
|
||||
|
|
Loading…
Add table
Reference in a new issue