Skip to content

Commit 2758bd3

Browse files
author
Alex Kalyvitis
committed
avoid floating point division of ram
1 parent f4001a0 commit 2758bd3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/finalize-db.test.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/finalize-db.test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/finalize-db.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88

99
test('getMemoryFlag() should return the correct --ram flag', t => {
1010

11-
const totalMem = os.totalmem() / (1024 * 1024);
11+
const totalMem = Math.floor(os.totalmem() / (1024 * 1024));
1212

1313
const tests = {
1414
"": `--ram=${totalMem - 256}`,

0 commit comments

Comments
 (0)