mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-16 05:35:53 +08:00
fix: allocating incorrect max value due to missing parentheses (#26)
This commit is contained in:
parent
d4ca381c38
commit
d47310a6f7
@ -74,7 +74,7 @@ export class PuppeteerControl extends AsyncService {
|
|||||||
return page.browser().connected && !page.isClosed();
|
return page.browser().connected && !page.isClosed();
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
max: Math.max(1 + Math.floor(os.freemem() / 1024 * 1024 * 1024), 16),
|
max: Math.max(1 + Math.floor(os.freemem() / (1024 * 1024 * 1024)), 16),
|
||||||
min: 1,
|
min: 1,
|
||||||
acquireTimeoutMillis: 60_000,
|
acquireTimeoutMillis: 60_000,
|
||||||
testOnBorrow: true,
|
testOnBorrow: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user