Skip to content

Commit

Permalink
Update timeboost/roundtiminginfo.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ganesh Vanahalli <[email protected]>
  • Loading branch information
Tristan-Wilson and ganeshvanahalli authored Dec 20, 2024
1 parent 2e80697 commit 63ba4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timeboost/roundtiminginfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (info *RoundTimingInfo) TimeTilNextRound() time.Duration {
// TimeTilNextRoundAt returns the time til the next round,
// where the next round is determined from the timestamp passed in.
func (info *RoundTimingInfo) TimeTilNextRoundAt(currentTime time.Time) time.Duration {
return time.Until(info.TimeOfNextRoundAt(currentTime))
return info.TimeOfNextRoundAt(currentTime).Sub(currentTime)
}

func (info *RoundTimingInfo) TimeOfNextRound() time.Time {
Expand Down

0 comments on commit 63ba4d4

Please sign in to comment.