From 61fdd63977ffcf604aa909bf88bbb8813f1167ab Mon Sep 17 00:00:00 2001 From: Tian Yunhao Date: Tue, 5 Mar 2019 12:20:21 +0800 Subject: [PATCH] Fix OLE detection. --- src/runner/run.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/run.ts b/src/runner/run.ts index 69c0178..5fb81d6 100644 --- a/src/runner/run.ts +++ b/src/runner/run.ts @@ -82,7 +82,7 @@ export async function runProgram(language: Language, result = await sandbox.waitForStop(); let ole = false; - const outputSize = await getSize(binDir); + const outputSize = await getSize(dataDir); if (outputSize > Cfg.outputLimit) { await fse.emptyDir(dataDir); ole = true;