Update from dev #53
1 changed files with 3 additions and 1 deletions
|
@ -218,7 +218,7 @@ impl LeaderBoardEntry {
|
|||
if best_lap > 60.0 {
|
||||
let (full_minutes, remainder) = Self::split_minute(best_lap);
|
||||
|
||||
format!("{:.0}:{:.3}", full_minutes, remainder)
|
||||
format!("{:.0}:{:06.3}", full_minutes, remainder)
|
||||
} else {
|
||||
format!("{:.3}", best_lap)
|
||||
}
|
||||
|
@ -307,5 +307,7 @@ mod test {
|
|||
let behind_leader = LeaderBoardEntry::calculate_behind_leader(BehindLeader::Time(85.42));
|
||||
let behind_next = LeaderBoardEntry::calculate_behind_next(150.213423);
|
||||
let best_lap = LeaderBoardEntry::calculuate_best_lap(97.23436);
|
||||
|
||||
let t = LeaderBoardEntry::calculuate_best_lap(65.23436);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue