challenge-sync-airbus: Use a score with better precision

This commit is contained in:
nemunaire 2024-03-19 13:59:28 +01:00
commit c0017d7cbb
2 changed files with 3 additions and 1 deletions

View file

@ -201,7 +201,7 @@ func (w *Walker) BalanceScores() error {
airbusTeam := w.TeamBindings[fmt.Sprintf("%d", myteam.Id)]
expected_score := int64(math.Floor(float64(myteam.Points) * w.Coeff))
expected_score := int64(math.Floor(float64(myteam.Points100) * w.Coeff / 100))
if airbusTeam == nil {
log.Printf("Skip team %q (tid=%d): no binding found", myteam.Name, myteam.Id)
} else if airbusTeam.Score != expected_score {