From feac5e70226778e098ac084655895e2b282610bc Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sun, 28 Apr 2024 03:20:34 +0000 Subject: [PATCH] adjust ratios --- svc/retriever.ts | 4 ++-- svc/web.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/svc/retriever.ts b/svc/retriever.ts index d86fc16a9..5a6a6b90b 100644 --- a/svc/retriever.ts +++ b/svc/retriever.ts @@ -15,8 +15,8 @@ const app = express(); const steamObj: Record = {}; const minUpTimeSeconds = 300; -const numAccounts = 10; -const matchesPerAccount = 55; +const numAccounts = 5; +const matchesPerAccount = 100; const accountAttemptMax = 5; const port = config.PORT || config.RETRIEVER_PORT; const getMatchRequestInterval = () => { diff --git a/svc/web.ts b/svc/web.ts index d9136785e..1fb71170c 100644 --- a/svc/web.ts +++ b/svc/web.ts @@ -229,7 +229,7 @@ app.get('/retrieverData', async (req, res) => { const success = Number(await redis.hget('retrieverSuccessSteamIDs', accountName)); const ratio = success / reqs; // Don't add high usage logons or high fail logons - if (reqs < 200 && (reqs < 10 || ratio > 0)) { + if (reqs < 120 && (reqs < 10 || ratio > 0)) { await redis.sadd('retrieverDataSet', accountData[i]); } }