Skip to content

Commit

Permalink
round estimated time
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Jan 31, 2024
1 parent e7bd3ff commit 258734b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/pds/src/api/com/atproto/temp/checkSignupQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ export default function (server: Server, ctx: AppContext) {
!limiterStatus.disableSignups &&
limiterStatus.accountsInPeriod > 0
) {
estimatedTimeMs =
estimatedTimeMs = Math.ceil(
(placeInQueue * limiterStatus.periodMs) /
limiterStatus.accountsInPeriod
limiterStatus.accountsInPeriod,
)
}

return {
Expand Down

0 comments on commit 258734b

Please sign in to comment.