mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: fix backward-compatibility
This commit is contained in:
1 parent
eedbf7875f
commit
f7006cf288
2 files changed
+2
-2
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "3.0.1",
|
"version": "3.0.2",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ function parseArgs(execute: string): string[] {
|
|||||||
function proc(params: Parameter): Cmd {
|
function proc(params: Parameter): Cmd {
|
||||||
const copyOut = supportOptional
|
const copyOut = supportOptional
|
||||||
? params.copyOut
|
? params.copyOut
|
||||||
: params.copyOut.map((i) => (i.endsWith('?') ? i.substring(0, i.length - 1) : i));
|
: (params.copyOut || []).map((i) => (i.endsWith('?') ? i.substring(0, i.length - 1) : i));
|
||||||
const size = parseMemoryMB(getConfig('stdio_size'));
|
const size = parseMemoryMB(getConfig('stdio_size'));
|
||||||
const rate = getConfig('rate');
|
const rate = getConfig('rate');
|
||||||
const copyOutCached = [...(params.copyOutCached || [])];
|
const copyOutCached = [...(params.copyOutCached || [])];
|
||||||
|
|||||||
Reference in new issue
Block a user