Minor fix/tweak to display timer output
This commit is contained in:
parent
ca925a9b50
commit
7a7883d359
1 changed files with 3 additions and 0 deletions
|
@ -418,6 +418,9 @@ fn seconds_to_time(seconds: f64) -> String {
|
|||
} else {
|
||||
result = String::new();
|
||||
}
|
||||
if new_seconds < 10.0 {
|
||||
result.push('0');
|
||||
}
|
||||
result.push_str(&new_seconds.to_string());
|
||||
let idx_result = result.find('.');
|
||||
if let Some(idx) = idx_result {
|
||||
|
|
Loading…
Reference in a new issue