Browse Source

恢复

master
richie 5 years ago
parent
commit
66102893b5
  1. 4
      src/runner/run.ts

4
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,

Loading…
Cancel
Save