修复SPJClient内存设置错误的问题

在使用Java的时候,内存是unlimited的,这时候要使用原始的内存数值
This commit is contained in:
virusdefender 2016-04-07 18:03:47 +08:00
parent 4566f544d1
commit 24bfc7ff02

View File

@ -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: