Skip to content

Commit

Permalink
adjust ratios
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Apr 28, 2024
1 parent dfabd04 commit feac5e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions svc/retriever.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const app = express();
const steamObj: Record<string, SteamUser> = {};
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 = () => {
Expand Down
2 changes: 1 addition & 1 deletion svc/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}
Expand Down

0 comments on commit feac5e7

Please sign in to comment.