Merge branch 'master' into get-all-on-startup

This commit is contained in:
Myk Melez 2015-01-28 09:39:08 -08:00
Родитель 6ab306db6c 986a52743f
Коммит aaa22a55bd
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -371,15 +371,15 @@ var fs = (function() {
var newBufferSize = 512;
// The buffer grows exponentially until the content size
// reaches 65536. After this threshold, it starts to grow
// linearly in increments of 65536 bytes.
if (newContentSize < 65536) {
// reaches 524288. After this threshold, it starts to grow
// linearly in increments of 524288 bytes.
if (newContentSize < 524288) {
while (newContentSize > newBufferSize) {
newBufferSize <<= 1;
}
} else {
while (newContentSize > newBufferSize) {
newBufferSize += 65536;
newBufferSize += 524288;
}
}