diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index 6bf9c3bf8..e026b5346 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -1,7 +1,7 @@ { "name": "@hydrooj/hydrojudge", "bin": "bin/hydrojudge.js", - "version": "2.1.31", + "version": "2.1.32", "main": "package.json", "author": "masnn", "repository": "https://github.com/hydro-dev/Hydro.git", diff --git a/packages/hydrojudge/src/cases.ts b/packages/hydrojudge/src/cases.ts index 002067a9d..7641f4fa2 100644 --- a/packages/hydrojudge/src/cases.ts +++ b/packages/hydrojudge/src/cases.ts @@ -255,7 +255,7 @@ export async function readYamlCases(folder: string, cfg: Dictionary = {}, a if: subtask.if || [], cases, time_limit_ms: parseTimeMS(subtask.time || cfg.time), - memory_limit_mb: parseMemoryMB(subtask.memory || cfg.time), + memory_limit_mb: parseMemoryMB(subtask.memory || cfg.memory), }); } } else { diff --git a/packages/hydrojudge/src/hosts/hydro.ts b/packages/hydrojudge/src/hosts/hydro.ts index be8f7320e..92267d710 100644 --- a/packages/hydrojudge/src/hosts/hydro.ts +++ b/packages/hydrojudge/src/hosts/hydro.ts @@ -174,12 +174,12 @@ class JudgeTask { } end(data) { + log.info('End: %o', data); data.key = 'end'; data.rid = new ObjectID(this.request.rid); data.domainId = this.request.domainId; data.time = data.time_ms ?? data.time; data.memory = data.memory_kb ?? data.memory; - log.info('End: status=%d score=%d time=%dms memory=%dkb', data.status, data.score, data.time, data.memory); this.ws.send(JSON.stringify(data)); } }