mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(judge): add memory limit configuration to LanguageConfigs
This commit is contained in:
parent
8b744f54f4
commit
9dede32073
@ -7,6 +7,7 @@ export interface LanguageConfig {
|
|||||||
tag: string;
|
tag: string;
|
||||||
workingDir: string;
|
workingDir: string;
|
||||||
timeout: number;
|
timeout: number;
|
||||||
|
memoryLimit: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const LanguageConfigs: Record<string, LanguageConfig> = {
|
export const LanguageConfigs: Record<string, LanguageConfig> = {
|
||||||
@ -19,6 +20,7 @@ export const LanguageConfigs: Record<string, LanguageConfig> = {
|
|||||||
tag: "latest",
|
tag: "latest",
|
||||||
workingDir: "/src",
|
workingDir: "/src",
|
||||||
timeout: 1000,
|
timeout: 1000,
|
||||||
|
memoryLimit: 128,
|
||||||
},
|
},
|
||||||
cpp: {
|
cpp: {
|
||||||
id: "cpp",
|
id: "cpp",
|
||||||
@ -29,5 +31,6 @@ export const LanguageConfigs: Record<string, LanguageConfig> = {
|
|||||||
tag: "latest",
|
tag: "latest",
|
||||||
workingDir: "/src",
|
workingDir: "/src",
|
||||||
timeout: 1000,
|
timeout: 1000,
|
||||||
|
memoryLimit: 128,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user