Browse Source

Fix OLE detection.

master
Tian Yunhao 6 years ago committed by GitHub
parent
commit
61fdd63977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/runner/run.ts

2
src/runner/run.ts

@ -82,7 +82,7 @@ export async function runProgram(language: Language,
result = await sandbox.waitForStop(); result = await sandbox.waitForStop();
let ole = false; let ole = false;
const outputSize = await getSize(binDir); const outputSize = await getSize(dataDir);
if (outputSize > Cfg.outputLimit) { if (outputSize > Cfg.outputLimit) {
await fse.emptyDir(dataDir); await fse.emptyDir(dataDir);
ole = true; ole = true;

Loading…
Cancel
Save