fix: scale web-probe tail scan budget (#786)
Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
@@ -2480,7 +2480,7 @@ async function readTailLines(file, limit) {
|
||||
const info = await stat(file);
|
||||
if (!info.size || limit <= 0) return [];
|
||||
const chunkSize = 64 * 1024;
|
||||
const maxBytes = 32 * 1024 * 1024;
|
||||
const maxBytes = Math.max(32 * 1024 * 1024, Math.min(256 * 1024 * 1024, limit * 512 * 1024));
|
||||
const chunks = [];
|
||||
let position = info.size;
|
||||
let readBytes = 0;
|
||||
|
||||
Reference in New Issue
Block a user