Skip to content

Commit

Permalink
ci(scripts/join): fix join nightly eta (#2300)
Browse files Browse the repository at this point in the history
Fix zero eta issue.

issue: #2294
  • Loading branch information
corverroos authored Oct 28, 2024
1 parent 4bbce22 commit aea8469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/join/join_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func estimate(height uint64, target uint64, since time.Duration) (time.Duration,
return 0, 0
}

eta := since * time.Duration(float64(remaining)/float64(height))
eta := time.Duration(float64(since) * float64(remaining) / float64(height))

bps := float64(height) / since.Seconds()

Expand Down

0 comments on commit aea8469

Please sign in to comment.