From 66102893b5aa95aff35a865e62d6fd44bd7073eb Mon Sep 17 00:00:00 2001 From: richie Date: Mon, 1 Jul 2019 12:40:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/runner/run.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner/run.ts b/src/runner/run.ts index f37c284..de079c7 100644 --- a/src/runner/run.ts +++ b/src/runner/run.ts @@ -64,8 +64,8 @@ export async function runProgram(language: Language, const dataDir_Sandbox = '/sandbox/1'; const binDir_Sandbox = '/sandbox/2'; - // 最大时间增加10倍 - const runConfig = language.run(binDir_Sandbox, dataDir_Sandbox, time * 10, memory, stdinFile, stdoutFile, stderrFile); + + const runConfig = language.run(binDir_Sandbox, dataDir_Sandbox, time, memory, stdinFile, stdoutFile, stderrFile); const sandboxParam = sandboxize(runConfig, [{ src: binDir,