Charuka Samarakoon commited on
Commit
d47310a
·
unverified ·
1 Parent(s): d4ca381

fix: allocating incorrect max value due to missing parentheses (#26)

Browse files
backend/functions/src/services/puppeteer.ts CHANGED
@@ -74,7 +74,7 @@ export class PuppeteerControl extends AsyncService {
74
  return page.browser().connected && !page.isClosed();
75
  }
76
  }, {
77
- max: Math.max(1 + Math.floor(os.freemem() / 1024 * 1024 * 1024), 16),
78
  min: 1,
79
  acquireTimeoutMillis: 60_000,
80
  testOnBorrow: true,
 
74
  return page.browser().connected && !page.isClosed();
75
  }
76
  }, {
77
+ max: Math.max(1 + Math.floor(os.freemem() / (1024 * 1024 * 1024)), 16),
78
  min: 1,
79
  acquireTimeoutMillis: 60_000,
80
  testOnBorrow: true,