stream: fix off-by-factor-16 error in comment
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 20 Aug 2015 20:19:46 +0000 (22:19 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 24 Aug 2015 18:21:22 +0000 (20:21 +0200)
The high watermark is capped at 8 MB, not 128 MB like the comment
in lib/_stream_readable.js said.

PR-URL: https://github.com/nodejs/node/pull/2479
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
lib/_stream_readable.js

index 1106998..644c4ff 100644 (file)
@@ -190,7 +190,7 @@ Readable.prototype.setEncoding = function(enc) {
   return this;
 };
 
-// Don't raise the hwm > 128MB
+// Don't raise the hwm > 8MB
 const MAX_HWM = 0x800000;
 function roundUpToNextPowerOf2(n) {
   if (n >= MAX_HWM) {