mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: bug fix
This commit is contained in:
1 parent
16b9cb461e
commit
cd157a5e43
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": "2.13.2",
|
"version": "2.13.3",
|
||||||
"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",
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ function isValidConfig(config) {
|
|||||||
}
|
}
|
||||||
const memMax = max(config.subtasks.map((subtask) => subtask.memory));
|
const memMax = max(config.subtasks.map((subtask) => subtask.memory));
|
||||||
if (memMax > parseMemoryMB(getConfig('memoryMax'))) throw new FormatError('Memory limit larger than memory_max');
|
if (memMax > parseMemoryMB(getConfig('memoryMax'))) throw new FormatError('Memory limit larger than memory_max');
|
||||||
if (['default', 'strict'].includes(config.checker_type || 'default') && !config.checker) {
|
if (!['default', 'strict'].includes(config.checker_type || 'default') && !config.checker) {
|
||||||
throw new FormatError('You did not specify a checker.');
|
throw new FormatError('You did not specify a checker.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user