Skip to content

Commit 38dedca

Browse files
committed
Corrected ranking algorithm. Rank was not increased when teamname matched the current entry.
1 parent 63742c8 commit 38dedca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ranking.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ var rankingCmd = &cobra.Command{
141141
table.Append([]string{tname + " -->", strconv.FormatInt(currentRank, 10), j.Anonymize().Teamname, strconv.FormatFloat(currentMinOpRunTime, 'f', 3, 64)})
142142
} else {
143143
table.Append([]string{"", strconv.FormatInt(currentRank, 10), j.Anonymize().Teamname, strconv.FormatFloat(currentMinOpRunTime, 'f', 3, 64)})
144-
x++
145144
}
145+
x++
146146
}
147147

148148
table.Render()

0 commit comments

Comments
 (0)