judge: add copyOutMax config

pull/468/head
undefined 2 years ago
parent 78e75ce8b7
commit d92f3f3ed6

@ -98,6 +98,7 @@ function proc(params: Parameter): Cmd {
strictMemoryLimit: getConfig('strict_memory'), strictMemoryLimit: getConfig('strict_memory'),
// stackLimit: memory * 1024 * 1024, // stackLimit: memory * 1024 * 1024,
procLimit: params.processLimit || getConfig('processLimit'), procLimit: params.processLimit || getConfig('processLimit'),
copyOutMax: Math.floor(1024 * 1024 * size * 3),
copyIn, copyIn,
copyOut, copyOut,
copyOutCached, copyOutCached,

Loading…
Cancel
Save