From 258734b51125a6827fe763a4b38e67d3d57cf4f2 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 30 Jan 2024 18:07:02 -0600 Subject: [PATCH] round estimated time --- packages/pds/src/api/com/atproto/temp/checkSignupQueue.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/pds/src/api/com/atproto/temp/checkSignupQueue.ts b/packages/pds/src/api/com/atproto/temp/checkSignupQueue.ts index cb58726b9a7..2a94c4fa558 100644 --- a/packages/pds/src/api/com/atproto/temp/checkSignupQueue.ts +++ b/packages/pds/src/api/com/atproto/temp/checkSignupQueue.ts @@ -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 {