diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2022-04-20 01:46:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 01:46:37 +0300 |
commit | 1e761654d3d93e4568d1228b92d1f3a09e92d078 (patch) | |
tree | b003499fede78612e88e01c82f591b7d7ae503bd /lib/assert.js | |
parent | 51fd5db4c18da2685b3825fb5617f7f968859299 (diff) |
doc: consolidate use of multiple-byte units
Refs: https://en.wikipedia.org/wiki/Byte#Multiple-byte_units
PR-URL: https://github.com/nodejs/node/pull/42587
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Diffstat (limited to 'lib/assert.js')
-rw-r--r-- | lib/assert.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/assert.js b/lib/assert.js index bbd3c283c5f..2c7cf369a87 100644 --- a/lib/assert.js +++ b/lib/assert.js @@ -213,7 +213,7 @@ function getCode(fd, line, column) { let lines = 0; // Prevent blocking the event loop by limiting the maximum amount of // data that may be read. - let maxReads = 32; // bytesPerRead * maxReads = 512 kb + let maxReads = 32; // bytesPerRead * maxReads = 512 KiB const bytesPerRead = 16384; // Use a single buffer up front that is reused until the call site is found. let buffer = Buffer.allocUnsafe(bytesPerRead); |