Skip to content

Commit

Permalink
avoid floating point division of ram
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Kalyvitis committed Jun 22, 2020
1 parent f4001a0 commit 2758bd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/finalize-db.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/finalize-db.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/finalize-db.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {

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

const totalMem = os.totalmem() / (1024 * 1024);
const totalMem = Math.floor(os.totalmem() / (1024 * 1024));

const tests = {
"": `--ram=${totalMem - 256}`,
Expand Down

0 comments on commit 2758bd3

Please sign in to comment.