Skip to content

Commit

Permalink
Correct Convertion to Mb
Browse files Browse the repository at this point in the history
Correct conversion of bytes to Megabytes
  • Loading branch information
vreshch committed Oct 31, 2020
1 parent c3fd874 commit 0c22a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const heapSize = () => {
}

const bytesToMb = (bytes) => {
return (bytes / (1000 * 1000)).toFixed(2)
return (bytes / (1024 * 1024)).toFixed(2)
}

const memory = (docs) => {
Expand Down

0 comments on commit 0c22a0f

Please sign in to comment.