We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a23f28 commit 7828dd0Copy full SHA for 7828dd0
internal/app/publish/messagegenerator.go
@@ -102,7 +102,7 @@ func (g *MessageGenerator) StateToRefereeMessage(matchState *state.State) (r *st
102
*r.StageTimeLeft = matchState.StageTimeLeft.Nanos / 1000
103
*r.BlueTeamOnPositiveHalf = *matchState.TeamInfo(state.Team_BLUE).OnPositiveHalf
104
r.NextCommand = mapCommand(matchState.NextCommand)
105
- *r.CurrentActionTimeRemaining = matchState.CurrentActionTimeRemaining.Nanos / 1000
+ *r.CurrentActionTimeRemaining = int32(matchState.CurrentActionTimeRemaining.Seconds)*1_000_000 + matchState.CurrentActionTimeRemaining.Nanos/1000
106
107
updateTeam(r.Yellow, matchState.TeamInfo(state.Team_YELLOW))
108
updateTeam(r.Blue, matchState.TeamInfo(state.Team_BLUE))
0 commit comments