From 5f079f3a4824c92af389abcb2e3e49443c694570 Mon Sep 17 00:00:00 2001 From: richie Date: Mon, 1 Jul 2019 12:38:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E6=9C=80=E5=A4=A7=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=A2=9E=E5=8A=A010=E5=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/runner/run.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runner/run.ts b/src/runner/run.ts index 5fb81d6..f37c284 100644 --- a/src/runner/run.ts +++ b/src/runner/run.ts @@ -64,7 +64,8 @@ export async function runProgram(language: Language, const dataDir_Sandbox = '/sandbox/1'; const binDir_Sandbox = '/sandbox/2'; - const runConfig = language.run(binDir_Sandbox, dataDir_Sandbox, time, memory, stdinFile, stdoutFile, stderrFile); + // 最大时间增加10倍 + const runConfig = language.run(binDir_Sandbox, dataDir_Sandbox, time * 10, memory, stdinFile, stdoutFile, stderrFile); const sandboxParam = sandboxize(runConfig, [{ src: binDir,