mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-01 10:02:01 +00:00
修复SPJClient内存设置错误的问题
在使用Java的时候,内存是unlimited的,这时候要使用原始的内存数值
This commit is contained in:
parent
4566f544d1
commit
24bfc7ff02
@ -125,8 +125,9 @@ class JudgeClient(object):
|
||||
run_result["result"] = result["wrong_answer"]
|
||||
run_result["output_md5"] = output_md5
|
||||
else:
|
||||
spj_result = spj_client.spj(path=self._spj_path, max_cpu_time=3 * self._max_cpu_time,
|
||||
max_memory=3 * self._max_memory,
|
||||
spj_result = spj_client.spj(path=self._spj_path,
|
||||
max_cpu_time=3 * self._max_cpu_time,
|
||||
max_memory=3 * self._real_max_memory,
|
||||
in_path=in_file,
|
||||
user_out_path=out_file)
|
||||
if spj_result["spj_result"] == spj_client.AC:
|
||||
|
Loading…
Reference in New Issue
Block a user