challenge-sync-airbus: Use a score with better precision
This commit is contained in:
parent
f157d9c3bd
commit
c0017d7cbb
2 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Reference in a new issue