Minor tweak to the remaining-time timer display
This commit is contained in:
parent
1d4a6d5f35
commit
cc746fa11c
1 changed files with 3 additions and 3 deletions
|
@ -512,12 +512,12 @@ fn seconds_to_time(seconds: f64) -> String {
|
|||
if minutes > 0 {
|
||||
result = minutes.to_string();
|
||||
result.push(':');
|
||||
if new_seconds < 10.0 {
|
||||
result.push('0');
|
||||
}
|
||||
} else {
|
||||
result = String::new();
|
||||
}
|
||||
if new_seconds < 10.0 && seconds >= 0.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