mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
judge: add default limit for run
This commit is contained in:
1 parent
3553c2c354
commit
728b49c553
5 files changed
+13
-13
No files matched your search
@@ -69,8 +69,8 @@ export const judge = async (ctx) => {
|
||||
stderr,
|
||||
copyIn,
|
||||
copyOut,
|
||||
time_limit_ms: parseTimeMS(ctx.config.time),
|
||||
memory_limit_mb: parseMemoryMB(ctx.config.memory),
|
||||
time_limit_ms: parseTimeMS(ctx.config.time || '1s'),
|
||||
memory_limit_mb: parseMemoryMB(ctx.config.memory || '128m'),
|
||||
},
|
||||
);
|
||||
const { code, time_usage_ms, memory_usage_kb } = res;
|
||||
|
||||
Reference in new issue
Block a user